Skip to content

Instantly share code, notes, and snippets.

@hirokiky
Last active March 17, 2017 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirokiky/214b85360eaf8059b6d4295a05f4fcce to your computer and use it in GitHub Desktop.
Save hirokiky/214b85360eaf8059b6d4295a05f4fcce to your computer and use it in GitHub Desktop.
back-or-beginning: C-a back to indentation, and then back to begining of lines.
;; Moving start line and start indend by C-a
(defun back-to-indentation-or-beginning () (interactive)
(if (= (point) (progn (back-to-indentation) (point)))
(beginning-of-line)))
(global-set-key "\C-a" 'back-to-indentation-or-beginning)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment