From: Nikos Apostolakis <nikos.ap@gmail.com>
Subject: Re: some emacs commands at end of file
Date: Sun, 21 Jan 2007 02:57:24 -0500 [thread overview]
Message-ID: <87ejpon76j.fsf@gmail.com> (raw)
In-Reply-To: y93odotknft.fsf@nestle.csail.mit.edu
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
next prev parent reply other threads:[~2007-01-21 7:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-21 4:34 some emacs commands at end of file Allan Adler
2007-01-21 4:47 ` Leo
2007-01-21 4:50 ` Leo
[not found] ` <mailman.3377.1169355310.2155.help-gnu-emacs@gnu.org>
2007-01-22 8:24 ` Allan Adler
2007-01-22 19:31 ` Robert Thorpe
2007-01-23 19:32 ` Allan Adler
2007-01-21 7:57 ` Nikos Apostolakis [this message]
[not found] ` <mailman.3380.1169366265.2155.help-gnu-emacs@gnu.org>
2007-01-22 8:29 ` Allan Adler
2007-01-22 10:49 ` Robert D. Crawford
2007-01-22 17:41 ` Allan Adler
2007-01-22 18:19 ` Robert D. Crawford
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ejpon76j.fsf@gmail.com \
--to=nikos.ap@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).