diff options
author | aurelien <aurelien@cwb.io> | 2012-11-13 16:42:17 +0100 |
---|---|---|
committer | aurelien <aurelien@cwb.io> | 2012-11-13 16:42:17 +0100 |
commit | 5ae2d0f4bb7b2d29aca46139292207252616ac1f (patch) | |
tree | 5ddf00b36f0c80c65769409af8be6bffe7643206 /pcr/doxymacs/doxymacs.install | |
parent | 0019e0942eb838ccf7fa72962e0f0d9f49cd1cf4 (diff) |
humm be
Diffstat (limited to 'pcr/doxymacs/doxymacs.install')
-rw-r--r-- | pcr/doxymacs/doxymacs.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/doxymacs/doxymacs.install b/pcr/doxymacs/doxymacs.install new file mode 100644 index 000000000..9d8366f45 --- /dev/null +++ b/pcr/doxymacs/doxymacs.install @@ -0,0 +1,19 @@ +post_install() { + cat <<__EOF__ +====> Put (require 'doxymacs) in your .emacs +====> Invoke doxymacs-mode with M-x doxymacs-mode. +====> To have doxymacs-mode invoked automatically when in C/C++ mode, put +(add-hook 'c-mode-common-hook 'doxymacs-mode) +====> in your .emacs. +====> If you want Doxygen keywords fontified use M-x doxymacs-font-lock. +====> To do it automatically in C and C++ modes, add the following to your .emacs: +(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) +__EOF__ +} + +post_upgrade() { + post_install +} |