From: Brian Flaherty <gmbxf4@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Add newline, same heading level in outline-mode
Date: Wed, 8 Oct 2008 15:29:55 -0700 (PDT) [thread overview]
Message-ID: <19888879.post@talk.nabble.com> (raw)
Hello,
In Auctex, when I'm in a LaTeX itemize environment, I can press Meta-Enter
and get a newline starting with \item. It is very handy. I'd like to do
something similar in outline-mode. For example, if I have this:
* heading
** point1
** point2 <-- and my cursor is here
I'd like to press Meta-Enter and have a new line started with the same
sub-heading level.
* heading
** point1
** point2
**
I've looked in Auctex code, but not seen where that \item code is.
Yesterday, I noticed org-mode has such a procedure, but it is a long
function and calls all sorts of other org-mode functions. I'd like a simple
function in my .emacs that works in outline-mode.
Any suggestions about how I should/could do this?
Thank you for your time and thoughts.
--
View this message in context: http://www.nabble.com/Add-newline%2C-same-heading-level-in-outline-mode-tp19888879p19888879.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2008-10-08 22:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 22:29 Brian Flaherty [this message]
2008-10-09 12:34 ` Add newline, same heading level in outline-mode Stephen Berman
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=19888879.post@talk.nabble.com \
--to=gmbxf4@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.
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).