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 4, 2017
1 parent 2ef2303 commit afd85d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layers/+lang/emacs-lisp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,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))))

(defun emacs-lisp/post-init-srefactor ()
(add-hook 'emacs-lisp-mode-hook 'spacemacs/lazy-load-srefactor)
Expand Down

0 comments on commit afd85d5

Please sign in to comment.