> Ah, that one's hiding a bit. I see it's as easy as say
> (add-hook 'texinfo-mode-hook
> (lambda ()
> (set (make-local-variable 'fill-nobreak-predicate)
> (lambda ()
> (string-equal (buffer-substring (- (point) 3) (point))
> "@: ")))))
That looks credible. I'd point out that fill-nobreak-predicate is a hook in
recent versions of Emacs, in which case add-hook should be used in place of
set/make-local-variable. Also things like (string-equal (buffer-substring
...) "blabla") are better written using (looking-at "blabla") which saves
you from creating a new string just to throw it away immediately.
Stefan
_______________________________________________
Gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources