From 109495e3ab2adb474cb0b6538ec318034b39f02c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 11 Jun 2020 14:56:14 +0200 Subject: 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. --- gui/conf/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gui/conf') 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)) -- cgit v1.2.3