From: "Ernest Adrogué" <eadrogue@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: changing word boundaries
Date: Tue, 20 Oct 2009 02:06:36 +0200 [thread overview]
Message-ID: <20091020000636.GA23630@doriath.local> (raw)
In-Reply-To: <873a5gwguf.fsf@fh-trier.de>
18/10/09 @ 23:08 (+0200), thus spake Andreas Politz:
> You could use dynamic syntax-tables via font-lock.
>
> (add-hook 'text-mode-hook
> (lambda nil
> (set (make-variable-buffer-local
> 'parse-sexp-lookup-properties) t)
> ;; get font-lock started
> (unless font-lock-defaults
> (setq font-lock-defaults '(nil t)))
> (add-to-list
> (make-variable-buffer-local
> 'font-lock-syntactic-keywords)
> ;; let ! between 2*a have word syntax
> '("a\\(!\\)a" 1 "w"))))
>
>
> Replace `a' and `!' with your characters and it'll work,
> hopefully.
It does what I wanted. :)
Thanks!
Ernest
next prev parent reply other threads:[~2009-10-20 0:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 16:27 changing word boundaries Ernest Adrogué
2009-10-18 19:24 ` Peter Dyballa
2009-10-18 21:19 ` Ernest Adrogué
2009-10-18 21:08 ` Andreas Politz
2009-10-20 0:06 ` Ernest Adrogué [this message]
[not found] ` <mailman.9139.1255997204.2239.help-gnu-emacs@gnu.org>
2009-11-01 19:10 ` Dave Love
2009-10-18 21:09 ` Andreas Politz
[not found] ` <mailman.9065.1255893858.2239.help-gnu-emacs@gnu.org>
2009-11-01 19:15 ` Dave Love
[not found] <mailman.9059.1255887881.2239.help-gnu-emacs@gnu.org>
2009-11-01 19:09 ` Dave Love
2009-11-08 17:07 ` Ernest Adrogué
2009-11-11 14:57 ` Kevin Rodgers
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=20091020000636.GA23630@doriath.local \
--to=eadrogue@gmx.net \
--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).