aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-11 14:56:14 +0200
committerAdrian Kummerlaender2020-06-11 14:56:14 +0200
commit109495e3ab2adb474cb0b6538ec318034b39f02c (patch)
tree5ceb583f5d7ff7f08eff45246e5757ca83a56718 /gui/conf
parent4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214 (diff)
downloadnixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar.gz
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar.bz2
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar.lz
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar.xz
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.tar.zst
nixos_home-109495e3ab2adb474cb0b6538ec318034b39f02c.zip
Setup automatic tag updating in Emacs
Sadly counsel-etags did not find universal-ctags in my PATH so some custom setup in Nix home-manager was required.
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index 4dbaba5..f7f7916 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -236,6 +236,12 @@
(use-package counsel-etags
:ensure t
:config
+ (setq tags-revert-without-query t)
+ (setq large-file-warning-threshold nil)
+ (add-hook 'prog-mode-hook
+ (lambda ()
+ (add-hook 'after-save-hook
+ 'counsel-etags-virtual-update-tags 'append 'local)))
(evil-leader/set-key
"d" 'counsel-etags-find-tag-at-point))