From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Outline mode Date: Fri, 06 Sep 2002 13:24:06 +0100 Organization: funfunfun Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87bs7b1fw5.fsf@smtp.blueyonder.co.uk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031316273 17579 127.0.0.1 (6 Sep 2002 12:44:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 12:44:33 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nITP-0004ZO-00 for ; Fri, 06 Sep 2002 14:44:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nIV1-0006PL-00; Fri, 06 Sep 2002 08:46:11 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!m28-mp1.cvx1-a.swa.dial.ntli.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: m28-mp1.cvx1-a.swa.dial.ntli.net (213.105.228.28) Original-X-Trace: fu-berlin.de 1031315221 58914823 213.105.228.28 (16 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.90 (i386-mingw-windows98.2222) Cancel-Lock: sha1:bYWPwWUYZH1WjbYRBxDFkomjpnc= Original-Xref: nntp.stanford.edu gnu.emacs.help:104539 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1098 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1098 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