emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Move to item to the bottom


From: Nicolas Goaziou
Subject: Re: [O] Move to item to the bottom
Date: Sat, 02 Jul 2011 10:05:39 +0200

Hello,

Marcelo de Moraes Serpa <address@hidden> writes:

>> Or are we talking about two different things?
>
> Not sure, maybe. What I mean is:
>
> gtd.org file:
>
> * TODO Blah
> * TODO Foo
> * TODO bar

[...]

That's what I thought. You are talking about headlines whereas my code
was about plain lists:

- Blah
- Foo
- bar

Forget about it then.

To achieve the desired effect, you may simply use this:

#+begin_src emacs-lisp
(defun ngz-move-headline-at-bottom ()
  "Move current headline to the last position in the same tree."
  (interactive)
  (unless (org-at-heading-p) (error "Not at an headline"))
  (while (ignore-errors (org-move-subtree-down))))
#+end_src


Regards,

-- 
Nicolas Goaziou



reply via email to

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