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)