From 989f9189bea426297281d7803b3063b6e289e0bd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 27 Aug 2023 04:55:51 -0600 Subject: [PATCH] [Emacs] Remove any special sorting for habits --- dotfiles/emacs.d/org-config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dotfiles/emacs.d/org-config.org b/dotfiles/emacs.d/org-config.org index c4de1260..93525bcb 100644 --- a/dotfiles/emacs.d/org-config.org +++ b/dotfiles/emacs.d/org-config.org @@ -384,6 +384,16 @@ We're going to use this to write separate parts of our config to different secti ((org-agenda-overriding-header "At least priority C:")))))) #+end_src +*** Sorting +I don't want habits to be sorted separately. If they are scheduled for a +specific time, they should appear in the agenda at that time! +#+begin_src emacs-lisp :tangle org-config-config.el +(let ((entry (assoc 'agenda org-agenda-sorting-strategy))) + (setf (cdr entry) (remove 'habit-down (cdr entry)))) + +(let ((entry (assoc 'agenda org-agenda-sorting-strategy))) + (setf (cdr entry) (remove 'habit-up (cdr entry)))) +#+end_src ** Archive #+begin_src emacs-lisp :tangle org-config-config.el (defun org-archive-if (condition-function)