Files
.emacs.d/modules/projects/siren-projectile.el
Jim Myhrberg 2e6dd89003 Store all temporary stuff in a specific cache folder
Instead of using effectively TMPDIR on the machine, let's use a `cache`
folder in the root of the .emacs.d directory.
2019-03-25 17:17:32 +00:00

58 lines
2.2 KiB
EmacsLisp

;;; siren-projectile.el --- jimeh's Emacs Siren: projectile configuration.
;;; Commentary:
;; Basic configuration for projectile.
;;; Code:
(use-package projectile
:bind
("C-c p p" . projectile-switch-project)
("C-c C-b" . projectile-ibuffer)
("C-c C-k" . projectile-kill-buffers)
("C-x C-t" . projectile-find-file)
("C-x t" . projectile-find-test-file)
("C-x C-v" . projectile-switch-to-buffer)
(:map projectile-mode-map
("C-c p" . projectile-command-map))
:init
(setq projectile-cache-file (expand-file-name "projectile" siren-cache-dir))
(setq projectile-completion-system 'ido
projectile-enable-caching nil
projectile-globally-ignored-directories '(".bzr"
".eunit"
".fslckout"
".git"
".hg"
".idea"
".svn"
".vagrant"
"_darcs"
"archive-contents"
"cache"
"coverage"
"doc"
"docs"
"elpa"
"node_modules"
"log"
"logs"
"tmp"
"vendor/assets")
projectile-globally-ignored-files '("TAGS" "*.log")
projectile-indexing-method 'hybrid
projectile-sort-order 'recently-active)
:config
;; Treat separate directories with Gemfiles within a single git repo as separate
;; projects.
(push "Gemfile" projectile-project-root-files-bottom-up)
(projectile-mode t))
(provide 'siren-projectile)
;;; siren-projectile.el ends here