Add doom*project-root advice fn

This commit is contained in:
Henrik Lissner 2017-06-19 00:03:37 +02:00
parent 7d081c3154
commit a2ca21cc21
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 9 additions and 6 deletions

View file

@ -87,9 +87,7 @@
:commands tern-mode
:init (add-hook 'js2-mode-hook #'tern-mode)
:config
;; Fix project detection
(defun +javascript*tern-project-dir (&rest _) (doom-project-root))
(advice-add #'tern-project-dir :override #'+javascript*tern-project-dir))
(advice-add #'tern-project-dir :override #'doom*project-root))
(def-package! company-tern