all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* getting rid of a mode
@ 2004-05-26 20:58 Raimund Kohl-Fuechsle
  2004-05-28  8:16 ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Raimund Kohl-Fuechsle @ 2004-05-26 20:58 UTC (permalink / raw)


Hello,

I may have overlooked it ... if so, please excuse: How do I stop a mode
once it had been called?

E.g.: In wiki-mode it's nice to use outline-minor-mode, but to prevent
mistakes I'd rather prefer to stop outline-minor-mode before saving the
buffer to file.

Thanks, ray

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting rid of a mode
       [not found] <mailman.7655.1085629016.1061.help-gnu-emacs@gnu.org>
@ 2004-05-27  3:58 ` Sean Richards
  0 siblings, 0 replies; 3+ messages in thread
From: Sean Richards @ 2004-05-27  3:58 UTC (permalink / raw)


Raimund Kohl-Fuechsle <ray@nabuli.de> writes:

> Hello,
>
> I may have overlooked it ... if so, please excuse: How do I stop a mode
> once it had been called?
>
> E.g.: In wiki-mode it's nice to use outline-minor-mode, but to prevent
> mistakes I'd rather prefer to stop outline-minor-mode before saving the
> buffer to file.
>
> Thanks, ray
>
>

c-h f outline-minor-mode

outline-minor-mode is an interactive autoloaded Lisp function in `outline'.
(outline-minor-mode &optional ARG)

Toggle Outline minor mode.
With arg, turn Outline minor mode on if arg is positive, off otherwise.
See the command `outline-mode' for more information on this mode.

Sean

-- 
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting rid of a mode
  2004-05-26 20:58 Raimund Kohl-Fuechsle
@ 2004-05-28  8:16 ` Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 2004-05-28  8:16 UTC (permalink / raw)


Raimund Kohl-Fuechsle <ray@nabuli.de> writes:

> E.g.: In wiki-mode it's nice to use outline-minor-mode, but to prevent
> mistakes I'd rather prefer to stop outline-minor-mode before saving the
> buffer to file.

Most minor mode functions are toggles.  That is, invoking them again
turns the mode off again.  Use C-h f to verify.

Usually, you can also pass a numeric arg to explicitly say "on" or
"off":

C-u 1 M-x outline-minor-mode RET                >0, turn on
C-u -1 M-x outline-minor-mode RET               <0, turn off

Use C-h f to verify that the mode you want has this feature.

Kai

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-28  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7655.1085629016.1061.help-gnu-emacs@gnu.org>
2004-05-27  3:58 ` getting rid of a mode Sean Richards
2004-05-26 20:58 Raimund Kohl-Fuechsle
2004-05-28  8:16 ` Kai Grossjohann

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.