summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-17 09:06:54 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-17 09:06:54 -0700
commit672a702e85b828d3fa9a9c8af7e0b927746a03f5 (patch)
tree9a7ec5b72ddaf0a0107ff4db308d1460eac66a1e
parent[emacs] Add hydra for magit. (diff)
downloademacs.d-672a702e85b828d3fa9a9c8af7e0b927746a03f5.tar.gz
[emacs] Add a custom variable for the files ignored by projectile.
-rw-r--r--emacs.d/config/config-env.el11
-rw-r--r--emacs.d/modules/module-project.el7
2 files changed, 16 insertions, 2 deletions
diff --git a/emacs.d/config/config-env.el b/emacs.d/config/config-env.el
index c945e0b..328914e 100644
--- a/emacs.d/config/config-env.el
+++ b/emacs.d/config/config-env.el
@@ -27,4 +27,15 @@
 (defvar fcuny-path-emacs-elpa (expand-file-name "elpa" fcuny-path-emacs-var)
   "Path to elpa's local files.")
 
+(defvar fcuny-projects-ignored-dirs
+  '(".git" ".svn" "target"
+    "elpa"))
+
+(defvar fcuny-projects-ignored-files
+  '(".DS_Store"
+    "*.pyc"
+    "*.jar"
+    "*.zip" "*.tar.gz" "*.tgz" "*.gz"
+    "TAGS"))
+
 (provide 'config-env)
diff --git a/emacs.d/modules/module-project.el b/emacs.d/modules/module-project.el
index bc0bdf9..cb11e0d 100644
--- a/emacs.d/modules/module-project.el
+++ b/emacs.d/modules/module-project.el
@@ -56,8 +56,11 @@ _s-f_: file            _a_: ag                _i_: Ibuffer           _c_: cache
         projectile-enable-caching t
         projectile-completion-system 'ivy
         projectile-known-projects-file (expand-file-name "var/projectile-bookmarks.eld" user-emacs-directory)
-        projectile-cache-file (expand-file-name "var/projectile.cache" user-emacs-directory))
-  (add-to-list 'projectile-globally-ignored-files ".DS_Store"))
+        projectile-cache-file (expand-file-name "var/projectile.cache" user-emacs-directory)
+        projectile-globally-ignored-directories (append fcuny-projects-ignored-dirs
+                                                        projectile-globally-ignored-directories)
+        projectile-globally-ignored-files (append fcuny-projects-ignored-files
+                                                  projectile-globally-ignored-files)))
 
 (use-package ag
   :commands (counsel-ag ag)