mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(editor): move marginalia related code to siren-marginalia module
This commit is contained in:
@@ -88,6 +88,21 @@ is within project root."
|
||||
(add-to-list 'marginalia-annotator-registry
|
||||
'(tab siren-marginalia-annotate-tab))
|
||||
|
||||
;; Customize projectile commands when/if loaded.
|
||||
(with-eval-after-load 'projectile
|
||||
(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 marginalia.
|
||||
(marginalia-mode +1))
|
||||
|
||||
|
||||
@@ -61,20 +61,6 @@
|
||||
: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))
|
||||
|
||||
Reference in New Issue
Block a user