[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I put the '_' into the elements that form a word use by forw
From: |
Xah |
Subject: |
Re: How can I put the '_' into the elements that form a word use by forward-word? |
Date: |
Thu, 20 Nov 2008 21:39:10 -0800 (PST) |
User-agent: |
G2/1.0 |
On Nov 20, 2:33 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:
> Use forward-symbol, not forward-word.
forward-symbol is kinda problematic. It does not seems widely
supported. For example, there's no backward-symbol, and the “*-word”
cursor moving keys doesn't change.
> Or change the syntax class of _ from word-constituent to symbol-constituent.
don't know what mode you are using, but here's a example of doing it
with emacs-lisp-mode:
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(modify-syntax-entry ?- "w" emacs-lisp-mode-syntax-table )
)
)
See:
• Syntax Class Table - GNU Emacs Lisp Reference Manual
http://xahlee.org/elisp/Syntax-Class-Table.html
Xah
∑ http://xahlee.org/
☄