Created
April 7, 2018 07:01
-
-
Save jasonrobot/3319d86728530c559c7ead88a18dd6ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun beginning-of-line-or-indentation () | |
"Move to beginning of line, or indentation." | |
(interactive) | |
(let ((start (point))) | |
(back-to-indentation) | |
;; now if point is the same as when we started, we're already at indent start | |
(if (= start (point)) | |
(beginning-of-line)))) | |
(global-set-key (kbd "C-a") 'beginning-of-line-or-indentation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment