From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Emulating list functionality from traditional GUI editors Date: Thu, 11 Dec 2014 20:48:28 +0100 Message-ID: <87vbliynlf.fsf@gmx.us> References: 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]:34613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9jG-0002du-9U for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 14:48:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz9j8-0007u2-K0 for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 14:48:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:35901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9j8-0007tt-Ci for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 14:48:42 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xz9j7-0004u7-3L for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 20:48:41 +0100 Received: from 109.201.152.244 ([109.201.152.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2014 20:48:41 +0100 Received: from rasmus by 109.201.152.244 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2014 20:48:41 +0100 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 Hi, Calvin Young writes: > - If the cursor is at the end of a list item, then "Return" should > insert a new list item (i.e., automatically perform org-meta-return) Maybe you can use org-element-at-point and advice org-return? > - If the cursor is at the beginning of an empty list item, then "Return" > should outdent the list item (or remove it if it's already at the > outer-most indentation level) I don't understand this. Do you know M-{left,right}? Again, you could advice org-return. In LO it removes the bullet. Here you can use C-S-Backspace. Bonus: it works everywhere! > - If the cursor is at the beginning of an empty list item, then > "Backspace" should delete the list item and move my cursor to the end of > the previous list item This is like C-S-Backspace C-p C-e. You could advice org-delete-backward. > - It'd be nice of these rules could be applied to checkboxes as well It should be trivial to support using org-element-at-point. > What I'm describing is really just the default behavior around bulleted / > numbered lists in other GUI editors (e.g., Google Docs, Gmail, OSX Notes, > etc.). OK... > Are there any options built in to org-mode that'd let me enable this? No. And I doubt it should be. But Emacs is /your/ extensible editor. —Rasmus -- Need more coffee. . .