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
This commit is contained in:
કૌસ્તુભ 𑘦𑘰𑘩𑘝𑘲 𑀤𑀺𑀮𑀻𑀧 2022-09-30 22:09:17 +02:00 committed by Bozhidar Batsov
parent 2c831ea7a2
commit a43838dfab
2 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,9 @@
### New features ### 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 module to enable Literate Programming
* Add a Racket module. * Add a Racket module.
* Add a Lua module. * Add a Lua module.

View file

@ -31,6 +31,7 @@
;;; Code: ;;; Code:
(require 'org) (require 'org)
(require 'org-habit)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
@ -40,6 +41,7 @@
(global-set-key "\C-cb" 'org-switchb) (global-set-key "\C-cb" 'org-switchb)
(setq org-log-done t) (setq org-log-done t)
(setq org-log-into-drawer t)
(defun prelude-org-mode-defaults () (defun prelude-org-mode-defaults ()
(let ((oldmap (cdr (assoc 'prelude-mode minor-mode-map-alist))) (let ((oldmap (cdr (assoc 'prelude-mode minor-mode-map-alist)))