Skip to content

Commit

Permalink
emacs-lisp: Speed up semantic
Browse files Browse the repository at this point in the history
Resolve syl20bnr#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 syl20bnr#7736 for additional context.
  • Loading branch information
delaanthonio committed Aug 3, 2017
1 parent 2ef2303 commit 7919f49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions layers/+lang/emacs-lisp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7919f49

Please sign in to comment.