Ian Eure <ian@digg.com> wrote:
The problem is that the M-d leaves the whitespace to the left of
"function," and the SPC to expand the abbrev gives another, so now I
have two spaces.
This has annoyed me as well in the past. I took a different route in
the solution. just-one-space would collide with my finger memory when
inserting something in the middle. Instead I chose to give the tab
key
an additional function
(defun tab-command ()
"Do the right thing for the tab key."
(interactive)
(or (expand-abbrev)
(indent-according-to-mode)))
My tab-command does in fact do many more things depending on context.
This is the abridged version. :)