From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically Date: Sun, 12 Apr 2015 22:51:15 +0200 Message-ID: <87pp79nk8s.fsf@gmx.us> References: <9187ca927d174c2197aa10d5b09146b6@fcmailsvr2.familycareinc.org> <87k2xkyn0j.fsf@nicolasgoaziou.fr> <874monr634.fsf@gmx.us> <87fv85xf3t.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhOqn-0003Rq-Et for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 16:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhOqj-00070B-VJ for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 16:51:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:60969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhOqj-0006z5-PC for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 16:51:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YhOqh-0003JV-PB for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 22:51:23 +0200 Received: from host149-70-dynamic.53-82-r.retail.telecomitalia.it ([82.53.70.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Apr 2015 22:51:23 +0200 Received: from rasmus by host149-70-dynamic.53-82-r.retail.telecomitalia.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Apr 2015 22:51:23 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Rasmus writes: > >> Nicolas Goaziou writes: >> >>> Eventually, we could introduce a `org-return-hook' where an user could >>> add, e.g., >>> >>> (lambda () (when (org-at-heading-p) (org-end-of-meta-data) (insert >>> "\n"))) >>> >>> Opinions? >> >> +1. >> >> I'd also like a hook on C-RET. > > Actually, a hook isn't even needed if you use `advice-add'. There's also org-metareturn-hook. I had a patch a while ago adding support for M-RET on keywords. This could be pushed together with a documentation on how to use it with add-function (is nadvice.el too new for us to assume when writing documentation?) or the mentioned hook. —Rasmus -- However beautiful the theory, you should occasionally look at the evidence