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:
Henrik Lissner 2017-09-20 01:33:25 +02:00
parent 77836e08b1
commit 3fcbdae441
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 10 additions and 16 deletions

View file

@ -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))