[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Outline mode
From: |
lawrence mitchell |
Subject: |
Re: Outline mode |
Date: |
Fri, 06 Sep 2002 13:24:06 +0100 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.90 (i386-mingw-windows98.2222) |
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>