emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] C-c ^ for plain lists? Why not?


From: Bastien
Subject: Re: [O] C-c ^ for plain lists? Why not?
Date: Sat, 27 Oct 2012 09:57:04 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> I would think that 
>    
>     checked - transitionary - unchecked - no box
>
> is a pretty decent default.  

+1

> (defun org-sort-list-by-checkbox-type ()
>   "Sort list items according to Checkbox state."
>   (interactive)
>   (org-sort-list
>    nil ?f
>    (lambda ()
>      (if (looking-at org-list-full-item-re)
>        (cdr (assoc (match-string 3)
>                    '(("[X]" . 1) ("[-]" . 2) ("[ ]" . 3) (nil . 4))))
>        4))))

Thanks -- I added this on Worg's hacks:

  http://orgmode.org/worg/org-hacks.html#sec-1-2-9

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]