mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(editor): decorate various projectile commands with marginalia
This commit is contained in:
@@ -57,6 +57,22 @@
|
||||
;; separate projects.
|
||||
(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)
|
||||
|
||||
Reference in New Issue
Block a user