help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some emacs commands at end of file


From: Nikos Apostolakis
Subject: Re: some emacs commands at end of file
Date: Sun, 21 Jan 2007 02:57:24 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Allan Adler <ara@nestle.csail.mit.edu> writes:

> I have a theory about (3), even though I don't know enough to really have
> a theory. My theory is that when it says
>
> mode:  outline
>
> it tells emacs to go into something called outline mode. Maybe an outline
> is a selection of particular lines, such as I find displayed when I type
> y in reply to the prompt.

Your theory is basically correct.  Besides Leo's suggestion you
might want to have a look at: 

,----[ C-h v outline-regexp RET ]
| outline-regexp is a variable defined in `outline.el'.
| Its value is "[*\f]+"
| 
| 
| This variable is safe as a file local variable if its value
| satisfies the predicate `string-or-null-p'.
| 
| Documentation:
| Regular expression to match the beginning of a heading.
| Any line whose beginning matches this regexp is considered to start a heading.
| Note that Outline mode only checks this regexp at the start of a line,
| so the regexp need not (and usually does not) start with `^'.
| The recommended way to set this is with a Local Variables: list
| in the file it applies to.  See also `outline-heading-end-regexp'.
| 
| You can customize this variable.
| 
| [back]
`----

And the info node for outline mode says:

,----[ (info "(emacs) Outline Mode") ]
| Outline mode is a major mode much like Text mode but intended for
| editing outlines.  It allows you to make parts of the text temporarily
| invisible so that you can see the outline structure.  Type `M-x
| outline-mode' to switch to Outline mode as the major mode of the current
| buffer.
| 
|    When Outline mode makes a line invisible, the line does not appear
| on the screen.  The screen appears exactly as if the invisible line
| were deleted, except that an ellipsis (three periods in a row) appears
| at the end of the previous visible line.  (Multiple consecutive
| invisible lines produce just one ellipsis.)
| 
|    Editing commands that operate on lines, such as `C-n' and `C-p',
| treat the text of the invisible line as part of the previous visible
| line.  Killing the ellipsis at the end of a visible line really kills
| all the following invisible lines.
| 
|    Outline minor mode provides the same commands as the major mode,
| Outline mode, but you can use it in conjunction with other major modes.
| Type `M-x outline-minor-mode' to enable the Outline minor mode in the
| current buffer.  You can also specify this in the text of a file, with
| a file local variable of the form `mode: outline-minor' (*note File
| Variables::).
`----

HTH,
Nikos





reply via email to

[Prev in Thread] Current Thread [Next in Thread]