From a43838dfab4d14604942624cd112bed6f2e637c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AA=95=E0=AB=8C=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=81?= =?UTF-8?q?=E0=AA=AD=20=F0=91=98=A6=F0=91=98=B0=F0=91=98=A9=F0=91=98=9D?= =?UTF-8?q?=F0=91=98=B2=20=F0=91=80=A4=F0=91=80=BA=F0=91=80=AE=F0=91=80=BB?= =?UTF-8?q?=F0=91=80=A7?= Date: Fri, 30 Sep 2022 22:09:17 +0200 Subject: [PATCH] Enable cleaner org-habits It is a small change in code but a big change in your interaction with your habits (periodic TODO lists) - Neatly log your TODO state changes into a drawer (default LOGBOOK) - Enable org-habits to show a consistency graph of your habits Reference: - https://orgmode.org/manual/Tracking-TODO-state-changes.html - https://orgmode.org/manual/Tracking-your-habits.html --- CHANGELOG.md | 3 +++ modules/prelude-org.el | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 653ddb8..e3df4aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### New features +* Enable org-habits +* Neatly track TODO state changes in a drawer (LOGBOOK) thereby + improving readability * Add a module to enable Literate Programming * Add a Racket module. * Add a Lua module. diff --git a/modules/prelude-org.el b/modules/prelude-org.el index 1bad82a..73f1706 100644 --- a/modules/prelude-org.el +++ b/modules/prelude-org.el @@ -31,6 +31,7 @@ ;;; Code: (require 'org) +(require 'org-habit) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) @@ -40,6 +41,7 @@ (global-set-key "\C-cb" 'org-switchb) (setq org-log-done t) +(setq org-log-into-drawer t) (defun prelude-org-mode-defaults () (let ((oldmap (cdr (assoc 'prelude-mode minor-mode-map-alist)))