]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
added ggtags and helm-gtags
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 23 Oct 2015 15:33:07 +0000 (17:33 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 23 Oct 2015 15:33:07 +0000 (17:33 +0200)
bba.org

diff --git a/bba.org b/bba.org
index bd85bbc7debad9f3e94ce1badc713747957a4ea0..58df4bb2a095324d9a14274baef0669d0f00b27b 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -958,13 +958,20 @@ taken from http://doc.norang.ca/org-mode.org
                     (define-key org-mode-map "\C-h\C-y" '(lambda () (interactive) (find-file "~/.emacs.d/snippets/org-mode.org")))
                     (when (display-graphic-p)
                       (rainbow-delimiters-mode))
-                    ))
+                    )
+                  )
         (add-hook 'text-mode-hook
                   (lambda ()
                     (auto-fill-mode)
                     (flyspell-mode)
                     )
                   )
+        (add-hook 'prog-mode-hook
+                  (lambda ()
+                    (when (display-graphic-p)
+                      (rainbow-delimiters-mode))
+                    )
+                  )
         )
     (progn
       (add-hook 'org-mode-hook
@@ -1742,6 +1749,33 @@ safe files with #! in first line as user executable.
   (global-set-key (kbd "M-n") 'bba/move-line-down)
 
 #+END_SRC
+* ggtags
+
+Configure [[https://github.com/leoliu/ggtags][ggtags]] and [[https://github.com/syohex/emacs-helm-gtags][helm-gtags]] to use [[https://www.gnu.org/software/global/][GNU Global]].
+If you are new to tags check [[http://tuhdo.github.io/c-ide.html][this]].
+
+#+BEGIN_SRC emacs-lisp
+  (if (>= emacs-major-version 24)
+      (progn
+        (add-to-list 'load-path "~/.emacs.d/elpa/ggtags-20150814.842" t)
+        (require 'ggtags)
+        (add-to-list 'load-path "~/.emacs.d/elpa/helm-gtags-20151016.201" t)
+        (require 'helm-gtags)
+        (add-hook 'puppet-mode-hook
+                  (lambda()
+                    (ggtags-mode 1)
+                    (helm-gtags-mode 1)))
+        (add-hook 'python-mode-hook
+                  (lambda()
+                    (ggtags-mode 1)
+                    (helm-gtags-mode 1)))
+        (add-hook 'cperl-mode-hook
+                  (lambda()
+                    (ggtags-mode 1)
+                    (helm-gtags-mode 1)))
+        ))
+#+END_SRC
+
 * helm
 
 Some links you might check out: