I've defined the \
character to behave as a word constituent in latex-mode, and I'm pretty happy with the results. The only thing bothering me is that a sequence like \alpha\beta
gets treated as a single word (which is the expected behavior, of course).
Is there a way to make emacs interpret a specific character as a word "starter"? This way it would always be considered part of the word following it, but never part of the word preceding it.
For clarity, here's an example:
\alpha\beta
^ ^
1 2
If the point is at 1
and I press M-d
, the string "\alpha" should be killed.
If the point is at 2
and I press M-<backspace>
, the string "\beta" should be killed.
How can I achieve this?