diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 1ee8102c6..1f2426bf2 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -53,12 +53,6 @@ ;; textmate-esque deletion [M-backspace] #'doom/backward-kill-to-bol-and-indent) -;; Smarter C-a/C-e for both Emacs and Evil. C-a will jump to indentation. -;; Pressing it again will send you to the true bol. Same goes for C-e, except -;; it will ignore comments+trailing whitespace before jumping to eol. -(map! :gi "C-a" #'doom/backward-to-bol-or-indent - :gi "C-e" #'doom/forward-to-last-non-comment-or-eol) - (map! (:map override ;; A little sandbox to run code in "A-;" #'eval-expression diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 428156a16..7b9cb00b7 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -141,6 +141,12 @@ "M-x" #'execute-extended-command "A-x" #'execute-extended-command) + ;; Smarter C-a/C-e for both Emacs and Evil. C-a will jump to indentation. + ;; Pressing it again will send you to the true bol. Same goes for C-e, except + ;; it will ignore comments+trailing whitespace before jumping to eol. + (map! :gi "C-a" #'doom/backward-to-bol-or-indent + :gi "C-e" #'doom/forward-to-last-non-comment-or-eol) + (if (featurep 'evil) (load! "+evil-bindings") (load! "+emacs-bindings")))