From db29025af4f89e7305fb07251ce79cd156665d87 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 24 Oct 2021 12:24:12 -0400 Subject: [PATCH] FIX evil-org hack for evil-redirect-digit-argument (removed from evil-mode) --- etc/conf.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/etc/conf.org b/etc/conf.org index 03ffec3..9a94122 100644 --- a/etc/conf.org +++ b/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 :END: #+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 - :straight t + :straight evil-org-mode :after (evil org) :delight :config (add-hook 'org-mode-hook 'evil-org-mode) (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 "g]" #'nd/org-goto-last-child-headline)