Created
September 27, 2010 20:33
-
-
Save amalloy/599774 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 smart-line-beginning () | |
"Move point to the beginning of text on the current line; if that is already the current position of point, then move it to the beginning of the line." | |
(interactive) | |
(let ((pt (point))) | |
(beginning-of-line-text) | |
(when (eq pt (point)) | |
(beginning-of-line)))) | |
(global-set-key "\C-a" 'smart-beginning-of-line) |
Bah. Emacs can't just read my mind, or use genius-like fuzzy correction?
tab completion .. you must have it!
Well yes. That's the only reason M-x was working for me. But I haven't figured out how to get tab completion in my .emacs file to recognize new symbols I've defined. Is this easy?
I am unsure which of these make it work in my setup ..
http://github.com/klang/elisp/blob/master/50-hippie-expand.el
or
http://github.com/klang/elisp/blob/master/52-clojure-extras.el
.. but I think it's the last one
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(global-set-key "\C-a" 'smart-line-beginning)
;; of course ..