summaryrefslogtreecommitdiff
path: root/devel/doxymacs/MESSAGE
blob: 41fc4991f0b58ccb718f4cfe8f36b7e7182f2a7d (plain)
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
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2006/11/01 07:02:31 dsainty Exp $

To use Doxymacs, put:

  (require 'doxymacs)

... in your .emacs file.

Invoke doxymacs-mode with M-x doxymacs-mode.  To have doxymacs-mode
automatically come up whenever you visit a C/C++ file, put:

  (add-hook 'c-mode-common-hook 'doxymacs-mode)

... in your .emacs file.

If you want Doxygen keywords fontified use M-x doxymacs-font-lock.  To do it
automatically, add the following to your .emacs file:

  (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)

This will add the Doxygen keywords to c-mode and c++-mode only.

===========================================================================