mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
bindings: standardize movement to the start or end
This commit is contained in:
@ -53,12 +53,6 @@
|
|||||||
;; textmate-esque deletion
|
;; textmate-esque deletion
|
||||||
[M-backspace] #'doom/backward-kill-to-bol-and-indent)
|
[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
|
(map! (:map override
|
||||||
;; A little sandbox to run code in
|
;; A little sandbox to run code in
|
||||||
"A-;" #'eval-expression
|
"A-;" #'eval-expression
|
||||||
|
@ -141,6 +141,12 @@
|
|||||||
"M-x" #'execute-extended-command
|
"M-x" #'execute-extended-command
|
||||||
"A-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)
|
(if (featurep 'evil)
|
||||||
(load! "+evil-bindings")
|
(load! "+evil-bindings")
|
||||||
(load! "+emacs-bindings")))
|
(load! "+emacs-bindings")))
|
||||||
|
Reference in New Issue
Block a user