3 ms·
> For example underscores are word boundaries in Emacs This is configurable [1] >The word commands’ understanding of word boundaries is controlled by the synt
by wcummings 10y ago
> For example underscores are word boundaries in Emacs
This is configurable [1]
>The word commands’ understanding of word boundaries is controlled by the syntax table. Any character can, for example, be declared to be a word delimiter.
[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Words.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Wo...
- mikekchar 10y agoThanks for that. My understanding of the documentation leads me to believe that I will have to change it for every single major mode, which is a bit of a pain. But at least it is mostly possible.
- deleted 10y ago[deleted]
- wcummings 10y agoYou could probably do something hacky like modify the current syntax map in after-change-major-mode-hook to apply it to every buffer. Or use something fancier like subword mode.