summaryrefslogtreecommitdiff
path: root/pcr/doxymacs/doxymacs.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-14 01:13:06 -0800
committerroot <root@rshg054.dnsready.net>2012-11-14 01:13:06 -0800
commit6fa5f08247aef1f757f376ef12bd4a6257c124f2 (patch)
treeb743d1e7cbc92a595661ecd730522cee45ebcabe /pcr/doxymacs/doxymacs.install
parenta29329c38e50afd28d28c3a99e35d8774b9b19f8 (diff)
Wed Nov 14 01:13:05 PST 2012
Diffstat (limited to 'pcr/doxymacs/doxymacs.install')
-rw-r--r--pcr/doxymacs/doxymacs.install19
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
+}