From: kgold@watson.ibm.com (kgold)
Subject: Re: C++ Mode: Interpretation of Underscores In Words
Date: 12 Nov 2003 18:54:57 GMT [thread overview]
Message-ID: <botvm1$gd0$1@news.btv.ibm.com> (raw)
In-Reply-To: mailman.209.1068653145.2005.help-gnu-emacs@gnu.org
Joe Mama <spartanquarters@yahoo.com> writes:
> 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.
Here are the two steps you need to do. Both are required!
1 - Reconfigure your client to turn off HTML when posting to news
groups and mailing lists.
2 - Add this to your .emacs:
(add-hook 'c-mode-common-hook
(function (lambda ()
(modify-syntax-entry ?_ "w" c++-mode-syntax-table)
(modify-syntax-entry ?_ "w" c-mode-syntax-table)
(modify-syntax-entry ?_ "w" java-mode-syntax-table)
)))
--
next prev parent reply other threads:[~2003-11-12 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.209.1068653145.2005.help-gnu-emacs@gnu.org>
2003-11-12 15:38 ` C++ Mode: Interpretation of Underscores In Words Stefan Monnier
2003-11-12 16:33 ` Sandip Chitale
2003-11-12 16:57 ` marc0
2003-11-12 18:54 ` kgold [this message]
2003-11-12 15:03 Joe Mama
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='botvm1$gd0$1@news.btv.ibm.com' \
--to=kgold@watson.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).