diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-23 13:41:01 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-23 13:42:03 -0700 |
commit | e5f9172571ea1d7164cb75ee1d2c91243d481606 (patch) | |
tree | aa95d9a6728247aa07cad470d65d2d3337f8c1a8 | |
parent | 29cf9cdabe74eb989ceda18f785bb6f7a443bdac (diff) | |
download | dotfiles-e5f9172571ea1d7164cb75ee1d2c91243d481606.tar.gz |
basic ggtags setup
-rw-r--r-- | .emacs.d/init-spw.el | 8 | ||||
-rw-r--r-- | .globgitignore | 3 | ||||
-rwxr-xr-x | .shenv | 9 |
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 @@ -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." # |