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

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

Add newline, same heading level in outline-mode


From: Brian Flaherty
Subject: Add newline, same heading level in outline-mode
Date: Wed, 8 Oct 2008 15:29:55 -0700 (PDT)

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.





reply via email to

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