all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: hide local variables in enriched mode
Date: 11 Jan 2005 17:53:58 +0100	[thread overview]
Message-ID: <876523gb4p.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: m21xcsyu50.fsf@seki.fr

Sébastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:

> Hi,  I wonder if/how I could hide  the local variables definitions in
> an enriched text file.   e.g : i have the following  ;;; Local
> Variables: *** ;;; mode: filladapt; *** ;;; End: ***
> 
> that i would like to hide for ps-printing it.
> 
> I  tried to put  some definitions  at the  beginning of  the file  after the
> content-type and text-width settings without success.
> 
> Is it possible ?
> 
> Thanks for pointers.
> 
> Sébastien Kirche

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.)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

This is a signature virus.  Add me to your signature and help me to live

  reply	other threads:[~2005-01-11 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-11 13:26 hide local variables in enriched mode Sébastien Kirche
2005-01-11 16:53 ` Pascal Bourguignon [this message]
2005-01-12  3:18   ` drkm
2005-01-12  9:02     ` Sébastien Kirche
2005-01-12  9:00   ` Sébastien Kirche

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=876523gb4p.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.