core-projects: refactor multiple-pushes into one append+setq

This commit is contained in:
Henrik Lissner 2017-02-13 04:45:57 -05:00
parent f4e0734dcf
commit fed4835bb6

View file

@ -21,15 +21,16 @@
:config :config
(projectile-mode +1) (projectile-mode +1)
(mapc (lambda (r) (push r projectile-other-file-alist)) (setq projectile-other-file-alist
'(("less" "css") (append '(("less" "css")
("styl" "css") ("styl" "css")
("sass" "css") ("sass" "css")
("scss" "css") ("scss" "css")
("css" "scss" "sass" "less" "styl") ("css" "scss" "sass" "less" "styl")
("jade" "html") ("jade" "html")
("pug" "html") ("pug" "html")
("html" "jade" "pug" "jsx" "tsx"))) ("html" "jade" "pug" "jsx" "tsx"))
projectile-other-file-alist))
(defun doom*projectile-cache-current-file (orig-fun &rest args) (defun doom*projectile-cache-current-file (orig-fun &rest args)
"Don't cache ignored files." "Don't cache ignored files."