Make doom-project-{p,root} functions simpler
+ doom-project-root and doom-project-p no longer takes arguments + Remove doom*project-root advice
This commit is contained in:
parent
77836e08b1
commit
3fcbdae441
4 changed files with 10 additions and 16 deletions
|
@ -88,7 +88,7 @@
|
|||
:commands tern-mode
|
||||
:init (add-hook 'js2-mode-hook #'tern-mode)
|
||||
:config
|
||||
(advice-add #'tern-project-dir :override #'doom*project-root))
|
||||
(advice-add #'tern-project-dir :override #'doom-project-root))
|
||||
|
||||
|
||||
(def-package! company-tern
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
(equal (file-name-extension buffer-file-name) "tsx")))
|
||||
(tide-setup)
|
||||
(flycheck-mode +1)
|
||||
(eldoc-mode +1)))
|
||||
(add-hook! (typescript-mode web-mode) #'+typescript|init-tide)
|
||||
|
||||
(advice-add #'tide-project-root :override #'doom*project-root))
|
||||
(eldoc-mode +1)
|
||||
(setq tide-project-root (doom-project-root))))
|
||||
(add-hook! (typescript-mode web-mode) #'+typescript|init-tide))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue