feat(biblio): add +icons for citar
This commit is contained in:
parent
2a33d64973
commit
8d99942469
1 changed files with 42 additions and 1 deletions
|
@ -22,7 +22,48 @@
|
|||
:config
|
||||
(setq org-cite-insert-processor 'citar
|
||||
org-cite-follow-processor 'citar
|
||||
org-cite-activate-processor 'citar))
|
||||
org-cite-activate-processor 'citar)
|
||||
(when (modulep! :completion vertico +icons)
|
||||
(defvar citar-indicator-files-icons
|
||||
(citar-indicator-create
|
||||
:symbol (all-the-icons-faicon
|
||||
"file-o"
|
||||
:face 'all-the-icons-green
|
||||
:v-adjust -0.1)
|
||||
:function #'citar-has-files
|
||||
:padding " " ; need this because the default padding is too low for these icons
|
||||
:tag "has:files"))
|
||||
(defvar citar-indicator-links-icons
|
||||
(citar-indicator-create
|
||||
:symbol (all-the-icons-octicon
|
||||
"link"
|
||||
:face 'all-the-icons-orange
|
||||
:v-adjust 0.01)
|
||||
:function #'citar-has-links
|
||||
:padding " "
|
||||
:tag "has:links"))
|
||||
(defvar citar-indicator-notes-icons
|
||||
(citar-indicator-create
|
||||
:symbol (all-the-icons-material
|
||||
"speaker_notes"
|
||||
:face 'all-the-icons-blue
|
||||
:v-adjust -0.3)
|
||||
:function #'citar-has-notes
|
||||
:padding " "
|
||||
:tag "has:notes"))
|
||||
(defvar citar-indicator-cited-icons
|
||||
(citar-indicator-create
|
||||
:symbol (all-the-icons-faicon
|
||||
"circle-o"
|
||||
:face 'all-the-icon-green)
|
||||
:function #'citar-is-cited
|
||||
:padding " "
|
||||
:tag "is:cited"))
|
||||
(setq citar-indicators
|
||||
(list citar-indicator-files-icons
|
||||
citar-indicator-links-icons
|
||||
citar-indicator-notes-icons
|
||||
citar-indicator-cited-icons))))
|
||||
|
||||
(use-package! citar-embark
|
||||
:when (modulep! :completion vertico)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue