bindings: standardize movement to the start or end
This commit is contained in:
parent
4bc5fac0b2
commit
cbd91a4d3e
2 changed files with 6 additions and 6 deletions
|
@ -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")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue