From 672a702e85b828d3fa9a9c8af7e0b927746a03f5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 17 Apr 2018 09:06:54 -0700 Subject: [emacs] Add a custom variable for the files ignored by projectile. --- emacs.d/config/config-env.el | 11 +++++++++++ emacs.d/modules/module-project.el | 7 +++++-- 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) -- cgit 1.4.1