[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hide local variables in enriched mode
From: |
Sébastien Kirche |
Subject: |
Re: hide local variables in enriched mode |
Date: |
Wed, 12 Jan 2005 10:00:19 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) |
Le 11 Jan 2005, Pascal Bourguignon a dit :
> I'd try to narrow the region before ps-printing.
> This could be done automatically with something like:
>
>
> -*- mode: fileadapt -*-
>
>
> blah blah blah
>
>
> Local Variables: eval: (let ((start (progn (beginning-of-buffer)
> (forward-line 2) (point))) (end ((end-of-buffer) (re-search-backward
> "Local Variables") (forward-line -1) (point)))) (narrow-to-region start
> end)) End:
>
> (Of course, you could define a function in ~/.emacs and use it in
> eval: in place of this complex expression.)
Thank you for your contribution Pascal, but i don't like much that embedded
eval...
I think i will take a closer look to the code provided by drkm, as it seems
that feature is not built-in.
Sébastien Kirche