emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Emulating list functionality from traditional GUI editors
Date: Thu, 11 Dec 2014 20:48:28 +0100	[thread overview]
Message-ID: <87vbliynlf.fsf@gmx.us> (raw)
In-Reply-To: CANniJExEWjJVEi6Q8duNU8VQPZ+q4aL2_SeBGhwXWwccuYDKeg@mail.gmail.com

Hi,

Calvin Young <calvinwyoung@gmail.com> 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. . .

  reply	other threads:[~2014-12-11 19:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11  8:14 Emulating list functionality from traditional GUI editors Calvin Young
2014-12-11 19:48 ` Rasmus [this message]
2014-12-12  4:48   ` Calvin Young
2014-12-12  8:37     ` Sebastien Vauban
2014-12-13  9:47       ` Calvin Young
  -- strict thread matches above, loose matches on Subject: below --
2014-12-11 17:05 Calvin Young
2014-12-11 17:34 ` Jorge A. Alfaro-Murillo
2014-12-11 17:41   ` Jorge A. Alfaro-Murillo
2014-12-11 18:19   ` Calvin Young
2014-12-11 18:44     ` Jorge A. Alfaro-Murillo

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbliynlf.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).