From: Perry Smith <pedz@easesoftware.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: two more emacs questions
Date: Fri, 17 Nov 2006 14:31:55 -0600 [thread overview]
Message-ID: <A8DC0491-E55D-4C1B-BEA7-349BC31D198F@easesoftware.com> (raw)
In-Reply-To: <009d01c70a7b$6731f190$6b01a8c0@dimalaptop>
[-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --]
On Nov 17, 2006, at 1:05 PM, Vadim Bendebury wrote:
> Say I want to search for other occurences of a word which the
> cursor is ot. I hit C-s C-w C-s and off it goes. The problem is
> when the word includes underscores - each C-w moves the mark to the
> next underscore, nit to the end ofthe word. Is there a way to
> configure emacs such that underscore is considered part of the word?
I do this for C mode: (modify-syntax-entry 95 "w" c-mode-syntax-table)
Two problems:
1) There are comments somewhere that explicitly say "don't do
this!!!" but I never figured out why. I'd like to here from others
why this is not recommended.
2) There are lots of syntax tables. Most major-modes have their
own. Some minor-modes I think diddle with them too. Plus there is a
global syntax table. So, you will need to explore and figure out
which syntax tables you want to change. Then add the modification to
the appropriate hook(s).
I have this in my .emacs file:
(custom-set-variables
...
'(c-initialization-hook (function (lambda nil (modify-syntax-entry 95
"w" c-mode-syntax-table))))
... )
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )
Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
[-- Attachment #1.2: Type: text/html, Size: 5368 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-11-17 20:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 19:05 two more emacs questions Vadim Bendebury
2006-11-17 20:31 ` Perry Smith [this message]
2006-11-17 22:02 ` vb
2006-11-18 8:20 ` Dieter Wilhelm
2006-11-18 18:39 ` vb
2006-11-19 3:00 ` Dieter Wilhelm
2006-11-19 4:00 ` vb
2006-11-19 10:17 ` Dieter Wilhelm
2006-11-18 10:02 ` Eli Zaretskii
2006-11-18 18:41 ` vb
2006-11-18 19:45 ` Eli Zaretskii
2006-11-19 4:06 ` vb
2006-11-19 4:12 ` Eli Zaretskii
[not found] ` <mailman.828.1163922268.2155.help-gnu-emacs@gnu.org>
2006-11-22 9:37 ` Mathias Dahl
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=A8DC0491-E55D-4C1B-BEA7-349BC31D198F@easesoftware.com \
--to=pedz@easesoftware.com \
--cc=help-gnu-emacs@gnu.org \
/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).