forked from ryzzn/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-doxymacs.el
28 lines (22 loc) · 976 Bytes
/
init-doxymacs.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;;; Time-stamp: <2012-07-31 20:14:04 sydi>
;;; author: Ryan Shi
;; - Default key bindings are:
;; - C-c d ? will look up documentation for the symbol under the point.
;; - C-c d r will rescan your Doxygen tags file.
;; - C-c d f will insert a Doxygen comment for the next function.
;; - C-c d i will insert a Doxygen comment for the current file.
;; - C-c d ; will insert a Doxygen comment for the current member.
;; - C-c d m will insert a blank multiline Doxygen comment.
;; - C-c d s will insert a blank singleline Doxygen comment.
;; - C-c d @ will insert grouping comments around the current region.
(require 'doxymacs)
;;; {{{ doxymacs auto load.
(add-hook 'c-mode-common-hook 'doxymacs-mode)
;;; }}}
;;; {{{ doxymacs font-lock
(defun my-doxymacs-font-lock-hook ()
(if (or (eq major-mode 'c-mode) (eq major-mode 'c++-mode))
(doxymacs-font-lock)))
(add-hook 'font-lock-mode-hook 'my-doxymacs-font-lock-hook)
;;; }}}
(provide 'init-doxymacs)