|
From: | Perry Smith |
Subject: | Re: two more emacs questions |
Date: | Fri, 17 Nov 2006 14:31:55 -0600 |
On Nov 17, 2006, at 1:05 PM, Vadim Bendebury wrote:
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 ) |
[Prev in Thread] | Current Thread | [Next in Thread] |