selectrum: update bibtex-actions config
- fix loading order issue - include (temporary?) binding in `SPC n b` to `bibtex-actions-open-entry`
This commit is contained in:
parent
52cae6e18f
commit
b9757e75ed
4 changed files with 12 additions and 8 deletions
|
@ -26,9 +26,10 @@ https://github.com/minad/marginalia/issues/59
|
|||
- org (check, might be fine)
|
||||
- counsel-minibuffer-history analogue
|
||||
- counsel-company analogue
|
||||
- bibtex
|
||||
* PROJ Other
|
||||
** TODO bind =consult-lsp-diagnostics= to something?
|
||||
** TODO test out bibtex-actions, check if more configuration should be added
|
||||
https://github.com/bdarcus/bibtex-actions
|
||||
.
|
||||
** TODO bibtex-actions improvements?
|
||||
currently =SPC n b= is bound to a function, but =bibtex-actions= doesn't have a
|
||||
main dispatch function like =ivy-bibtex=, rather it has a bunch of different
|
||||
ones. Binding the ~bibtex-actions-map~ there would probably be better, but there
|
||||
are nontrivial loading order shinanigans happening that make that not straightforward.
|
||||
|
|
|
@ -149,7 +149,8 @@
|
|||
(:when (featurep! :tools biblio)
|
||||
:desc "Bibliographic entries" "b"
|
||||
(cond ((featurep! :completion ivy) #'ivy-bibtex)
|
||||
((featurep! :completion helm) #'helm-bibtex)))
|
||||
((featurep! :completion helm) #'helm-bibtex)
|
||||
((featurep! :completion selectrum) #'bibtex-actions-open-entry)))
|
||||
|
||||
:desc "Toggle last org-clock" "c" #'+org/toggle-last-clock
|
||||
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
||||
|
|
|
@ -514,7 +514,8 @@
|
|||
(:when (featurep! :tools biblio)
|
||||
:desc "Bibliographic entries" "b"
|
||||
(cond ((featurep! :completion ivy) #'ivy-bibtex)
|
||||
((featurep! :completion helm) #'helm-bibtex)))
|
||||
((featurep! :completion helm) #'helm-bibtex)
|
||||
((featurep! :completion selectrum) #'bibtex-actions-open-entry)))
|
||||
|
||||
:desc "Toggle last org-clock" "c" #'+org/toggle-last-clock
|
||||
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
(use-package! bibtex-actions
|
||||
:when (featurep! :completion selectrum)
|
||||
:after embark
|
||||
:defer t
|
||||
:config
|
||||
(add-to-list 'embark-keymap-alist '(bibtex . bibtex-actions-map)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue