emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-orgmode@gnu.org
Subject: A better indentation for lists
Date: Mon, 12 Nov 2007 22:15:01 +0000	[thread overview]
Message-ID: <m36407xg9m.fsf@cam.ac.uk> (raw)

Dear all,

The indentation of lists has annoyed me for quite a while. The following
behavior can be observed:

<example 1>
* Head
  - 1
  - 2
    + 3
      - 4

If we need -4 to be on the same level as 1 and 2, we need to move 4 to
form the following:

<example 2>
* Head
  - 1
  - 2
    + 3
  - 4   

Now if I reindent the buffer, <example 2> will go back to <example 1>,
i.e. the indentation of list is not robust at all.

Thus I propose the following:

 i. TAB can only move an item if it is before the first indentation
    level


     <example 2>
     * Head                                * Head  
     - 1                                     - 1   
     - 2                ==>>                 - 2   
     + 3                                     + 3 
     - 4                                     - 4   

 ii. M-<right/left> for moving to other levels for example if 3 should
     be a sublist, move cursor to it and press <M-right>

     * Head
       - 1
       - 2
         + 3
       - 4   
     
I feel this behavior is more robust than current one.

HTH,
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/

             reply	other threads:[~2007-11-12 22:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 22:15 Leo [this message]
2007-11-22 20:20 ` A better indentation for lists Carsten Dominik

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=m36407xg9m.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --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).