[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Open Outline-mode file in collapsed state
From: |
bev |
Subject: |
Re: Open Outline-mode file in collapsed state |
Date: |
Thu, 27 Mar 2008 12:27:06 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Mar 27, 7:25 am, Evans Winner <tho...@timbral.net> wrote:
> bev <f...@comcast.net> 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.
Evans,
Yep, a slight variation of your solution works. I now have in
my .emacs:
(add-hook 'outline-mode-hook '(lambda () (hide-sublevels 1)))
I've never seen that syntax before -- putting a '1' after a function
that takes no args. Does that just mean 'make it so'? I don't know why
just having hide-sublevels without the '1' won't work.
Thanks Evans.
Bev
- Open Outline-mode file in collapsed state, bev, 2008/03/25
- Re: Open Outline-mode file in collapsed state, Evans Winner, 2008/03/24
- Re: Open Outline-mode file in collapsed state, Xavier Maillard, 2008/03/25
- Message not available
- Re: Open Outline-mode file in collapsed state, bev, 2008/03/27
- Re: Open Outline-mode file in collapsed state, Evans Winner, 2008/03/27
- Re: Open Outline-mode file in collapsed state, bev, 2008/03/27
- Re: Open Outline-mode file in collapsed state,
bev <=
- Re: Open Outline-mode file in collapsed state, Evans Winner, 2008/03/27
- Re: Open Outline-mode file in collapsed state, bev, 2008/03/27
- Re: Open Outline-mode file in collapsed state, Bastien, 2008/03/29
Re: Open Outline-mode file in collapsed state, Bastien, 2008/03/29
Re: Open Outline-mode file in collapsed state, Bastien, 2008/03/29