From 7919f49f37dc2a0783c05fe03829e01af043464d Mon Sep 17 00:00:00 2001 From: Dela Anthonio Date: Thu, 3 Aug 2017 12:32:00 -0400 Subject: [PATCH] emacs-lisp: Speed up semantic Resolve #1907. Emacs 25 sets semanticdb-find-default-throttle as a mode-local variable in emacs-lisp-mode and includes the omniscient throttle which slows down indexing. Let's override the mode-local variable so it doesn't include the omniscient throttle. See #7736 for additional context. --- layers/+lang/emacs-lisp/packages.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/+lang/emacs-lisp/packages.el b/layers/+lang/emacs-lisp/packages.el index 5abac8b914d5..dd07f83d9d0c 100644 --- a/layers/+lang/emacs-lisp/packages.el +++ b/layers/+lang/emacs-lisp/packages.el @@ -200,8 +200,10 @@ (defun emacs-lisp/post-init-semantic () (add-hook 'emacs-lisp-mode-hook 'semantic-mode) - (with-eval-after-load 'semantic - (semantic-default-elisp-setup))) + (semantic-default-elisp-setup) + (setq-mode-local emacs-lisp-mode + semanticdb-find-default-throttle + '(file local project unloaded system recursive))) (defun emacs-lisp/post-init-srefactor () (add-hook 'emacs-lisp-mode-hook 'spacemacs/lazy-load-srefactor)