summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-23 13:41:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-23 13:42:03 -0700
commite5f9172571ea1d7164cb75ee1d2c91243d481606 (patch)
treeaa95d9a6728247aa07cad470d65d2d3337f8c1a8
parent29cf9cdabe74eb989ceda18f785bb6f7a443bdac (diff)
downloaddotfiles-e5f9172571ea1d7164cb75ee1d2c91243d481606.tar.gz
basic ggtags setup
-rw-r--r--.emacs.d/init-spw.el8
-rw-r--r--.globgitignore3
-rwxr-xr-x.shenv9
3 files changed, 20 insertions, 0 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index 25ea61a5..43bfe634 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -1143,6 +1143,14 @@ By an anonymous EmacsWiki contributor."
("C-c g G" . spw--browse-gmane))
:init (setq gnus-init-file (concat user-emacs-directory "init-gnus")))
+(use-package ggtags
+ :if (spw--optional-pkg-available-p "ggtags")
+ :commands ggtags-mode
+ :init
+ (setq ggtags-mode-line-project-name nil)
+ (dolist (hook '(cperl-mode-hook c-mode-hook))
+ (add-hook hook 'ggtags-mode)))
+
;;;; ---- functions and bindings ----
diff --git a/.globgitignore b/.globgitignore
index 03bade00..0f8135a6 100644
--- a/.globgitignore
+++ b/.globgitignore
@@ -12,6 +12,9 @@ flycheck_*
cabal.sandbox.config
shell.nix
TAGS
+GTAGS
+GRTAGS
+GPATH
dist
docsets
.ruffus_history.sqlite
diff --git a/.shenv b/.shenv
index d44dec8a..3a8cceee 100755
--- a/.shenv
+++ b/.shenv
@@ -157,6 +157,15 @@ export IMPASS_KEYFILE
PERLDOC="-oman"
export PERLDOC
+# Select the pygments parser for GNU GLOBAL, which works for a lot of
+# languages. Override with a gtags.conf in the project root. Relies
+# on having /etc/gtags/gtags.conf defining which languages the
+# pygments parser works with (available in Debian global package
+# version 6.6.4-2 or later, or can copy that file from upstream source
+# to ~/.globalrc)
+GTAGSLABEL=pygments
+export GTAGSLABEL
+
# "Setting the monitor port to 0 turns the monitoring function off,
# and autossh will only restart ssh upon ssh's exit."
#