lang/org: use evil-org-key-theme variable to initialize evil-org
Gives people a chance to customize which evil-org key themes are available to them. Addresses #591
This commit is contained in:
parent
fa6a99f963
commit
022baf808c
1 changed files with 8 additions and 8 deletions
|
@ -31,15 +31,15 @@
|
||||||
|
|
||||||
(def-package! evil-org
|
(def-package! evil-org
|
||||||
:when (featurep! :feature evil)
|
:when (featurep! :feature evil)
|
||||||
:commands evil-org-mode
|
:hook (org-mode . evil-org-mode)
|
||||||
|
:hook (org-load . evil-org-set-key-theme)
|
||||||
:init
|
:init
|
||||||
(add-hook 'org-load-hook #'+org|setup-evil)
|
(setq evil-org-key-theme '(navigation insert textobjects))
|
||||||
(add-hook 'org-mode-hook #'evil-org-mode)
|
(add-hook 'org-load-hook #'+org|setup-evil))
|
||||||
:config
|
|
||||||
(evil-org-set-key-theme '(navigation insert textobjects))
|
(def-package! evil-org-agenda
|
||||||
(after! org-agenda
|
:after org-agenda
|
||||||
(require 'evil-org-agenda)
|
:config (evil-org-agenda-set-keys))
|
||||||
(evil-org-agenda-set-keys)))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue