commit 7412ae1144e3cf5f4c21c09ea817f734b74efdf7 parent 13159c38088ea5238cbc4f3d7b1e074359ef355e Author: Michael Neuper <michael@michaelneuper.com> Date: Tue, 12 Aug 2025 19:16:23 +0200 customise c Diffstat:
| M | config.org | | | 14 | ++++++++------ |
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/config.org b/config.org @@ -861,13 +861,15 @@ Configure =cc-mode=. #+begin_src emacs-lisp (after! cc-mode (setf (alist-get 'c-mode c-default-style) "k&r") - (setq c-basic-offset 2)) + (setq c-basic-offset 2 + c-doc-comment-style '((c-mode . doxygen)))) + +(add-hook! 'c-mode-common-hook (c-setup-doc-comment-style)) -(add-hook 'c-mode-hook - (lambda () - (unless (or (file-exists-p "makefile") - (file-exists-p "Makefile")) - (setq-local compile-command "cc -Wall -o main main.c")))) +(add-hook! 'c-mode-hook + (unless (or (file-exists-p "makefile") + (file-exists-p "Makefile")) + (setq-local compile-command "cc -Wall -o main main.c"))) #+end_src Fix issue where two new lines are inserted after ={=.