emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda todos list sorted by earliest deadline first
Date: Wed, 11 May 2022 21:24:39 +0800	[thread overview]
Message-ID: <87y1z8i4mg.fsf@localhost> (raw)
In-Reply-To: <875ymd9efn.fsf@k-7.ch>

Sébastien Gendre <seb@k-7.ch> writes:

> The only option I have to set is:
> ```
> (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up priority-down timestamp-down category-keep)
> 				    (todo deadline-up priority-down category-keep)
> 				    (tags priority-down category-keep)
> 				    (search category-keep)))
> ```
>
> Do the `deadline-up` option will apply to all todo lists in the agenda ?
> Even the ones in custom views ?

Yes. (setq org-agenda-sorting-strategy ...) is global setting.
However, you can also set it locally inside custom agenda command if you
wish. See the docstring of org-agenda-custom-commands:

>> settings  A list of option settings, similar to that in a let form, so like
>>          this: ((opt1 val1) (opt2 val2) ...).   The values will be
>>          evaluated at the moment of execution, so quote them when needed.

optN can be org-agenda-sort-strategy.

Best,
Ihor


      reply	other threads:[~2022-05-11 13:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02 16:24 org-agenda todos list sorted by earliest deadline first Sébastien Gendre
2022-04-02 21:16 ` Samuel Wales
2022-04-02 23:02   ` Sébastien Gendre
2022-04-04 11:42     ` Ihor Radchenko
2022-04-04 16:02       ` Sébastien Gendre
2022-04-04 16:07       ` Sébastien Gendre
2022-04-05  5:44         ` Ihor Radchenko
2022-04-05  6:47           ` Sébastien Gendre
2022-04-05  7:14             ` Ihor Radchenko
2022-04-05  7:20               ` Sébastien Gendre
2022-05-10 23:00               ` Sébastien Gendre
2022-05-11 13:24                 ` Ihor Radchenko [this message]

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=87y1z8i4mg.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=seb@k-7.ch \
    /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).