From 560548db3336fe7df711a4e856e9ccc69612deb2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 31 Dec 2017 18:32:56 -0500 Subject: [PATCH] core-projects: refactor projectile var init --- core/core-projects.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/core/core-projects.el b/core/core-projects.el index 42c0a222a..24db2ee04 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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")) - ("scss" . ("css")) - ("sass" . ("css")) - ("less" . ("css")) - ("styl" . ("css")))) + (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"))))) ;; Projectile root-searching functions can cause an infinite loop on TRAMP ;; connections, so disable them.