diff --git a/config.org b/config.org index cf2a069..42c5a71 100644 --- a/config.org +++ b/config.org @@ -393,6 +393,18 @@ :config (setq eldoc-message-function #'ignore eldoc-idle-delay 0)) + (setq my-doxygen-keywords + '("brief" "param" "return" "throws" "author" "version")) + + (defun my-additional-doxygen-highlighting () + (font-lock-add-keywords + nil + (mapcar (lambda (keyword) + `(,(concat "\\(\\\\\\|@\\)" keyword) + 1 font-lock-keyword-face)) + my-doxygen-keywords))) + + (add-hook 'c++-mode-hook 'my-additional-doxygen-highlighting) #+end_src *** Apheleia