Files
.emacs.d/modules/projects/siren-projectile.el
Jim Myhrberg e2d2a46f27 Update projectile and helm-projectile setup
Importantly, this includes setting the projectile indexing method to
hybrid, as the default alien makes it skip sorting results altogether.
2018-12-20 03:35:19 +00:00

59 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.cache" siren-savefile-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"
"coverage"
"doc"
"docs"
"elpa"
"node_modules"
"log"
"logs"
"savefile"
"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