unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Outline mode
@ 2002-09-06 12:06 Keith O'Connell
  2002-09-06 12:24 ` lawrence mitchell
  2002-09-06 22:15 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Keith O'Connell @ 2002-09-06 12:06 UTC (permalink / raw)


hi,

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

Keith
-- 
___________________________________   _
  Keith O'Connell.                   -o)
  Maidstone, Kent. (UK)              /\\
  keith_oconnell@blueyonder.co.uk   _\_v

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Outline mode
  2002-09-06 12:06 Outline mode Keith O'Connell
@ 2002-09-06 12:24 ` lawrence mitchell
  2002-09-06 22:15 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: lawrence mitchell @ 2002-09-06 12:24 UTC (permalink / raw)


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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Outline mode
  2002-09-06 12:06 Outline mode Keith O'Connell
  2002-09-06 12:24 ` lawrence mitchell
@ 2002-09-06 22:15 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2002-09-06 22:15 UTC (permalink / raw)


Keith O'Connell wrote:

> hi,
> 
> 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


Lawrence gave several good solutions.  You could also invoke emacs as

	emacs FILE --eval '(outline-minor-mode 1)'

-- 
Kevin Rodgers <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-06 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 12:06 Outline mode Keith O'Connell
2002-09-06 12:24 ` lawrence mitchell
2002-09-06 22:15 ` Kevin Rodgers

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