mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
With vertico, orderless and marginalia, I feel the regular projectile find-file and switch-project commands offer just as good if not better completion than helm-projectile commands do. Hence the switch.
82 lines
3.2 KiB
EmacsLisp
82 lines
3.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 p k" . projectile-kill-buffers)
|
|
("C-c p r" . projectile-replace)
|
|
("C-c p S" . projectile-save-project-buffers)
|
|
("C-c C-b" . projectile-ibuffer)
|
|
("C-c b" . projectile-switch-to-buffer)
|
|
("C-x C-t" . projectile-find-file)
|
|
("C-x ;" . projectile-find-file)
|
|
("C-x C-;" . projectile-find-file)
|
|
("C-c ;" . projectile-switch-project)
|
|
("C-c C-;" . projectile-switch-project)
|
|
|
|
(:map projectile-mode-map
|
|
("C-c p" . projectile-command-map))
|
|
|
|
:custom
|
|
(projectile-buffers-filter-function 'projectile-buffers-with-file-or-process)
|
|
(projectile-cache-file (expand-file-name "projectile" siren-cache-dir))
|
|
(projectile-completion-system 'default)
|
|
(projectile-enable-caching nil)
|
|
(projectile-globally-ignored-directories '(".bzr"
|
|
".eunit"
|
|
".extension"
|
|
".fslckout"
|
|
".git"
|
|
".hg"
|
|
".idea"
|
|
".svn"
|
|
".vagrant"
|
|
"_darcs"
|
|
"archive-contents"
|
|
"cache"
|
|
"coverage"
|
|
"doc"
|
|
"docs"
|
|
"elpa"
|
|
"log"
|
|
"logs"
|
|
"node_modules"
|
|
"sorbet"
|
|
"straight"
|
|
"tmp"
|
|
"vendor/assets"))
|
|
(projectile-globally-ignored-files '("TAGS" "*.log"))
|
|
(projectile-indexing-method 'hybrid)
|
|
(projectile-project-search-path '("~/Projects"))
|
|
(projectile-sort-order 'recently-active)
|
|
|
|
:config
|
|
(push "Gemfile" projectile-project-root-files-bottom-up)
|
|
|
|
;; Customize marginalia if loaded.
|
|
(with-eval-after-load 'marginalia
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-switch-project . file))
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-switch-open-project . file))
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-find-file . project-file))
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-recentf . project-file))
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-display-buffer . project-buffer))
|
|
(add-to-list 'marginalia-command-categories
|
|
'(projectile-switch-to-buffer . project-buffer)))
|
|
|
|
;; Enable projectile.
|
|
(projectile-mode))
|
|
|
|
(provide 'siren-projectile)
|
|
;;; siren-projectile.el ends here
|