From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: how to define delimiter ? Date: Tue, 16 Sep 2008 01:50:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3e37e76d-8d67-42e1-8466-cc30d5db0c35@k30g2000hse.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1221558366 29433 80.91.229.12 (16 Sep 2008 09:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 09:46:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 11:46:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfX8v-0003oc-Ea for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 11:46:45 +0200 Original-Received: from localhost ([127.0.0.1]:56965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfX7u-0008Ve-Ac for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 05:45:42 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k30g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 129.20.38.196 Original-X-Trace: posting.google.com 1221555025 21262 127.0.0.1 (16 Sep 2008 08:50:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Sep 2008 08:50:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k30g2000hse.googlegroups.com; posting-host=129.20.38.196; posting-account=hanW0AoAAADuR-PIr5jGeb298Y3jGR7p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162342 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57687 Archived-At: On Sep 16, 8:42=A0am, tomer 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