Emacs: Tweak C-a behavior
This commit is contained in:
1 parent
a5646fd706
commit
8e75430b0b
2 files changed
+12
No files matched your search
@@ -0,0 +1,10 @@
|
||||
(provide 'thoom-editing)
|
||||
|
||||
(defun thoom/move-to-beginnings ()
|
||||
"Move between the two beginnings of a line: The very beginning, and the first non-whitespace character."
|
||||
(interactive "^")
|
||||
(if (bolp)
|
||||
(back-to-indentation)
|
||||
(move-beginning-of-line 1)))
|
||||
|
||||
(global-set-key (kbd "C-a") #'thoom/move-to-beginnings)
|
||||
Reference in new issue
Block a user