all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ritchie <ritchiecai@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: enable outline-minor-mode at startup
Date: Tue, 3 Feb 2009 20:14:07 -0800 (PST)	[thread overview]
Message-ID: <adec82cd-a139-421a-8f50-28bcff4b3d6b@s9g2000prg.googlegroups.com> (raw)
In-Reply-To: mailman.6690.1233717721.26697.help-gnu-emacs@gnu.org

On Feb 3, 7:21 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> Ritchie wrote:
> > I'm wondering if there is a way to enable the outline-minor-mode at
> > startup. Without it, when I try to hide function body using command
> > "hide-subtree", the hided function looks as if it is empty. Outline-
> > minor-mode will have "..." indicating the body is hidden. When I put
> > (outline-minor-mode 1) in .emacs, there is no effect, I still have to
> > start it manually for each buffer.
>
> > Anybody know how to start outline-minor-mode automatically? Or, is
> > there other methods are used for hiding function bodies?
>
> 1. (add-hook 'FOO-mode-hook (lambda () (outline-minor-mode 1)))
>
>     where FOO-mode is the relevant major mode.
>
> 2. (add-hook 'find-file-hook (lambda () (outline-minor-mode 1)))
>     (add-hook 'find-file-not-found-functions
>              (lambda () (progn (outline-minor-mode 1) nil)))
>
> 3. Or try define-globalized-minor-mode.
>
> --
> Kevin Rodgers
> Denver, Colorado, USA

They worked great !! I really appreciate it !

regards

- R


      parent reply	other threads:[~2009-02-04  4:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03 20:52 enable outline-minor-mode at startup Ritchie
2009-02-04  3:21 ` Kevin Rodgers
     [not found] ` <mailman.6690.1233717721.26697.help-gnu-emacs@gnu.org>
2009-02-04  4:14   ` Ritchie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=adec82cd-a139-421a-8f50-28bcff4b3d6b@s9g2000prg.googlegroups.com \
    --to=ritchiecai@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.