pkgsrc/devel/doxymacs/MESSAGE

28 lines
883 B
Text
Raw Normal View History

===========================================================================
$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.
===========================================================================