[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Fine-tuning adaptive-fill-mode for use with ema
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: Fine-tuning adaptive-fill-mode for use with emacs-wiki/muse |
Date: |
Thu, 23 Jun 2005 17:05:17 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Allen Halsey <address@hidden> writes:
> That works! Thanks!
>
> I googled around for info on buffer-local variables and came up with
> this:
>
> ;; Make adaptive fill mode consistent with emacs-wiki markup
> (add-to-list
> 'emacs-wiki-mode-hook
> (lambda ()
> (set (make-local-variable 'adaptive-fill-regexp)
> "[ \t]*\\(-+[ \t]*\\|[0-9]+[.)][ \t]*\\)*")))
>
> Does that look right? It seems to work.
Yep, that looks about right. Thanks for the feedback! I'll add
something similar to this in Muse and emacs-wiki.
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgppGyphrmHgd.pgp
Description: PGP signature