unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: lawrence mitchell <wence@gmx.li>
Subject: Re: Outline mode
Date: Fri, 06 Sep 2002 13:24:06 +0100	[thread overview]
Message-ID: <wkfzwn9uhl.fsf@ID-97657.usr.dfncis.de> (raw)
In-Reply-To: 87bs7b1fw5.fsf@smtp.blueyonder.co.uk

Keith O'Connell wrote:

> Is there a way to open a file in emacs in outline mode?

> Either with a switch, or file name extension? Better still to open the
> file in a collapsed form

There are multiple ways.  You could have the line:
-*- outline -*-
on the first line of the file, or use a "Local Variables" section
at the end of the file.  See the section "File Variables" in the
Emacs manual, (Info-goto-node "(emacs)File Variables"), for more
detailed information.

If you want all files with an extension .txt to open in outline
mode, you can customise the variable `auto-mode-alist', e.g.

(add-to-list 'auto-mode-alist '("\\.txt$" . outline-mode))

-- 
lawrence mitchell <wence@gmx.li>

  reply	other threads:[~2002-09-06 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-06 12:06 Outline mode Keith O'Connell
2002-09-06 12:24 ` lawrence mitchell [this message]
2002-09-06 22:15 ` 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=wkfzwn9uhl.fsf@ID-97657.usr.dfncis.de \
    --to=wence@gmx.li \
    /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).