[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ Mode: Interpretation of Underscores In Words
From: |
marc0 |
Subject: |
Re: C++ Mode: Interpretation of Underscores In Words |
Date: |
Wed, 12 Nov 2003 17:57:26 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Sandip Chitale on Wed, 12 Nov 2003 16:33:45 GMT writes:
> <DIV><FONT face=Arial size=2>The word boundary is controlled by the syntax
> table. You can change the syntax of _ to be part of the word using
> modify-syntax.</FONT></DIV>
> <DIV><FONT face=Arial size=2>Do C-h f modify-syntax RET to get help on the
> defun. </FONT><FONT face=Arial size=2>This however may affect other features
> <DIV>Given a variable like "employee_name" is there a way to make
> emacs
> treat this as one word. Would be nice when doing commands
> like "forward-word" which treats employee_name as two words.
> </DIV>
> <DIV> </DIV>
or while in cc-mode:
M-x modify-syntax-entry RET _ RET w RET
but, as Stefan wrote, there are C-M-f and similar.
PS: please stop posting in HTML.
HTML posts are less accessible then plain-text ones, HTML posts make
archives less useful to search with grep & co, they take more space
and bandwith, they are nearly-unreadable for many peoples who have no
HTML redering configuration, and take away (cpu-)time to peoples who
have it. plain-text is enought for mail, anyone setups its MUA/NR to
display mails with the fonts/colors/font-size he wants, paragraph
separator can be an empty line.
--
marc0@autistici.org - 0x4E8899C2