emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Subject: Re: Emulating list functionality from traditional GUI editors
Date: Thu, 11 Dec 2014 12:34:12 -0500	[thread overview]
Message-ID: <878uieqeej.fsf@yale.edu> (raw)
In-Reply-To: CANniJEy_XdZvdbux1o3c4bM+t=Xs_CLfZ9DsxvWDb3Rr+nNDew@mail.gmail.com

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)

M-<enter> does this. You do not want <enter> to do that because 
you when you want to finish the list <enter> finishes it.
 
> * 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 am not sure that I understand this but I assume that you would 
obtain the same with <tab>. It goes back and forth between levels 
of list so if you have
 
- one
- two
  + a
  + CURSOR_HERE

and you hit <tab> then it changes to 

- one
- two
  + a
    + CURSOR_HERE

and then two times <tab> (or S-<tab> from the beginning) changes 
it to

- one
- two
  + a
- CURSOR_HERE


> * 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 

I guess you could remap <backspace> to a function that checks if 
you are at the beginning of the list and when that is true it does 
what you want, otherwise it just calls `delete-backward-char'. But 
generally I would do C-a C-k <backspace>, just two more 
keystrokes.
 
> * It'd be nice of these rules could be applied to checkboxes as 
> well

M-S-<enter> inserts a check box.

Best,

-- 
Jorge.

  reply	other threads:[~2014-12-11 17:37 UTC|newest]

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

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=878uieqeej.fsf@yale.edu \
    --to=jorge.alfaro-murillo@yale.edu \
    --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).