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)
|
- org (check, might be fine)
|
||||||
- counsel-minibuffer-history analogue
|
- counsel-minibuffer-history analogue
|
||||||
- counsel-company analogue
|
- counsel-company analogue
|
||||||
- bibtex
|
|
||||||
* PROJ Other
|
* PROJ Other
|
||||||
** TODO bind =consult-lsp-diagnostics= to something?
|
** TODO bind =consult-lsp-diagnostics= to something?
|
||||||
** TODO test out bibtex-actions, check if more configuration should be added
|
** TODO bibtex-actions improvements?
|
||||||
https://github.com/bdarcus/bibtex-actions
|
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.
|
||||||
|
|
|
@ -148,8 +148,9 @@
|
||||||
:desc "Org agenda" "a" #'org-agenda
|
:desc "Org agenda" "a" #'org-agenda
|
||||||
(:when (featurep! :tools biblio)
|
(:when (featurep! :tools biblio)
|
||||||
:desc "Bibliographic entries" "b"
|
:desc "Bibliographic entries" "b"
|
||||||
(cond ((featurep! :completion ivy) #'ivy-bibtex)
|
(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 "Toggle last org-clock" "c" #'+org/toggle-last-clock
|
||||||
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
||||||
|
|
|
@ -513,8 +513,9 @@
|
||||||
:desc "Org agenda" "a" #'org-agenda
|
:desc "Org agenda" "a" #'org-agenda
|
||||||
(:when (featurep! :tools biblio)
|
(:when (featurep! :tools biblio)
|
||||||
:desc "Bibliographic entries" "b"
|
:desc "Bibliographic entries" "b"
|
||||||
(cond ((featurep! :completion ivy) #'ivy-bibtex)
|
(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 "Toggle last org-clock" "c" #'+org/toggle-last-clock
|
||||||
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
(use-package! bibtex-actions
|
(use-package! bibtex-actions
|
||||||
:when (featurep! :completion selectrum)
|
:when (featurep! :completion selectrum)
|
||||||
|
:after embark
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(add-to-list 'embark-keymap-alist '(bibtex . bibtex-actions-map)))
|
(add-to-list 'embark-keymap-alist '(bibtex . bibtex-actions-map)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue