core-projects: refactor projectile var init

This commit is contained in:
Henrik Lissner 2017-12-31 18:32:56 -05:00
parent 189e401197
commit 560548db33
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -18,12 +18,16 @@
;; a more generic project root file
(push ".project" projectile-project-root-files-bottom-up)
(nconc projectile-globally-ignored-directories (list (abbreviate-file-name doom-local-dir) ".sync"))
(nconc projectile-other-file-alist '(("css" . ("scss" "sass" "less" "style"))
(setq projectile-globally-ignored-directories
(append projectile-globally-ignored-directories
(list (abbreviate-file-name doom-local-dir) ".sync"))
projectile-other-file-alist
(append projectile-other-file-alist
'(("css" . ("scss" "sass" "less" "styl"))
("scss" . ("css"))
("sass" . ("css"))
("less" . ("css"))
("styl" . ("css"))))
("styl" . ("css")))))
;; Projectile root-searching functions can cause an infinite loop on TRAMP
;; connections, so disable them.