how to define delimiter ?
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
how to define delimiter ?         


Author: tomer
Date: Sep 15, 2008 23:42

sorry for the basic question.
I want to remove the underscore as a delimiter. in other words
characters concatanate with underscore will be define as single word.
2 Comments
Re: how to define delimiter ?         


Author: Nikolaj Schumacher
Date: Sep 16, 2008 01:50

tomer walla.co.il> wrote:
> sorry for the basic question.
> I want to remove the underscore as a delimiter. in other words
> characters concatanate with underscore will be define as single word.

You'll need to use (modify-syntax-entry ?_ "w") in the mode hook.

regards,
Nikolaj Schumacher
no comments
Re: how to define delimiter ?         


Author: harven
Date: Sep 16, 2008 01:50

On Sep 16, 8:42 am, tomer walla.co.il> wrote:
> sorry for the basic question.
> I want to remove the underscore as a delimiter. in other words
> characters concatanate with underscore will be define as single word.

This is done by modifying the syntax table. The syntax table depends
on the editing mode. Putting the following line in your .emacs will
treat the underscore as a word constituent in text-mode.

(modify-syntax-entry ?_ "w" text-mode-syntax-table)

You may want to have a look at the emacs wiki:
http://www.emacswiki.org/cgi-bin/wiki/EmacsSyntaxTable
no comments