FIX evil-org hack for evil-redirect-digit-argument (removed from evil-mode)
This commit is contained in:
parent
4b2b4f78c9
commit
db29025af4
12
etc/conf.org
12
etc/conf.org
|
@ -3940,14 +3940,24 @@ Some of these commands just get in the way of being evil (which really means tha
|
||||||
:ID: ea04f214-0510-4a04-8ee4-2ac8e6955dde
|
:ID: ea04f214-0510-4a04-8ee4-2ac8e6955dde
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
;; hack to fix evil removal of `evil-redirect-digit-argument' which will cause
|
||||||
|
;; evil-org to fail on load
|
||||||
|
;; see https://github.com/Somelauw/evil-org-mode/issues/93
|
||||||
|
(fset 'evil-redirect-digit-argument 'ignore)
|
||||||
|
|
||||||
|
|
||||||
(use-package evil-org
|
(use-package evil-org
|
||||||
:straight t
|
:straight evil-org-mode
|
||||||
:after (evil org)
|
:after (evil org)
|
||||||
:delight
|
:delight
|
||||||
:config
|
:config
|
||||||
(add-hook 'org-mode-hook 'evil-org-mode)
|
(add-hook 'org-mode-hook 'evil-org-mode)
|
||||||
(add-hook 'evil-org-mode-hook 'evil-org-set-key-theme)
|
(add-hook 'evil-org-mode-hook 'evil-org-set-key-theme)
|
||||||
|
|
||||||
|
;; this was added to deal with bug above
|
||||||
|
(add-to-list 'evil-digit-bound-motions 'evil-org-beginning-of-line)
|
||||||
|
(evil-define-key 'motion 'evil-org-mode
|
||||||
|
(kbd "0") 'evil-org-beginning-of-line)
|
||||||
|
|
||||||
(evil-define-key 'normal org-mode-map
|
(evil-define-key 'normal org-mode-map
|
||||||
"g]" #'nd/org-goto-last-child-headline)
|
"g]" #'nd/org-goto-last-child-headline)
|
||||||
|
|
Loading…
Reference in New Issue