Skip to main content
added 13 characters in body
Source Link
rocky
  • 908
  • 7
  • 26

Expanding on djangoliv's comment. Abbrev's, "you cant'': abbrev's expands the last word and the "/" is not considered a word character.

Try this. Put this in a buffer:

abc/ def/ghi

and then move by word (Meta-F and Meta-B). You'll see that "abc" "def" and "ghi" is moved over, but we stop at the slash.

You can however modify what emacs-considers a word character via M-x modify-syntax-entry / w. Then when you move word you'll see that / is included in the word.

See http://emacswiki.org/emacs/EmacsSyntaxTable for more information on syntax tables.

Expanding on djangoliv's comment. Abbrev's expands the last word and the "/" is not considered a word character.

Try this. Put this in a buffer:

abc/ def/ghi

and then move by word (Meta-F and Meta-B). You'll see that "abc" "def" and "ghi" is moved over, but we stop at the slash.

You can however modify what emacs-considers a word character via M-x modify-syntax-entry / w. Then when you move word you'll see that / is included in the word.

See http://emacswiki.org/emacs/EmacsSyntaxTable for more information on syntax tables.

Expanding on djangoliv's comment, "you cant'': abbrev's expands the last word and the "/" is not considered a word character.

Try this. Put this in a buffer:

abc/ def/ghi

and then move by word (Meta-F and Meta-B). You'll see that "abc" "def" and "ghi" is moved over, but we stop at the slash.

You can however modify what emacs-considers a word character via M-x modify-syntax-entry / w. Then when you move word you'll see that / is included in the word.

See http://emacswiki.org/emacs/EmacsSyntaxTable for more information on syntax tables.

Source Link
rocky
  • 908
  • 7
  • 26

Expanding on djangoliv's comment. Abbrev's expands the last word and the "/" is not considered a word character.

Try this. Put this in a buffer:

abc/ def/ghi

and then move by word (Meta-F and Meta-B). You'll see that "abc" "def" and "ghi" is moved over, but we stop at the slash.

You can however modify what emacs-considers a word character via M-x modify-syntax-entry / w. Then when you move word you'll see that / is included in the word.

See http://emacswiki.org/emacs/EmacsSyntaxTable for more information on syntax tables.