From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evans Winner Newsgroups: gmane.emacs.help Subject: Re: Open Outline-mode file in collapsed state Date: Thu, 27 Mar 2008 08:25:17 -0600 Organization: Aioe.org NNTP Server Message-ID: <86od90b5wy.fsf@timbral.net> References: <86abkntrcs.fsf@timbral.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206629041 19243 80.91.229.12 (27 Mar 2008 14:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2008 14:44:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 27 15:44:23 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JetJe-00051t-C4 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2008 15:42:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JetJ2-00054o-Ra for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2008 10:42:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: tHL7Pw00KvzSeEbptdOqCQ.user.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:tTDxYMFuHc2gViEREFS+TNnapgI= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:157371 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52740 Archived-At: bev writes: I'm not sure what you mean by that. Are you saying add that to the top of every single outline file I have? (Hundreds). I don't want to do that. I need a function that will simply run (hide-trees) every time I open an outline file. I really can't take the time to go add a line to hundreds of files. Also, I've never seen that before. Is that lisp code? No, as I already said, this was a mistake on my part. I thought the question was about org-mode. I am pretty sure this will not work for outline mode. Maybe try putting in your .emacs something like (add-to-list 'outline-mode-hook (lambda (hide-sublevels 1))) I haven't tested it, but I think something like this would be the answer.