Improve the display of habits for the current day

master
Jacopo De Simoi 4 years ago
parent f492670a18
commit 645c104403
  1. 7
      global.org

@ -975,8 +975,9 @@
Improve the org-habit graph thing Improve the org-habit graph thing
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-habit-regular-glyph ?□ (setq org-habit-regular-glyph ?□
org-habit-today-glyph ?□ org-habit-today-glyph ?
org-habit-completed-glyph ?▣) org-habit-completed-glyph ?▣
org-habit-completed-today-glyph ?)
(defun wilder/org-habit-build-graph (habit starting current ending) (defun wilder/org-habit-build-graph (habit starting current ending)
"Build a graph for the given HABIT, from STARTING to ENDING. "Build a graph for the given HABIT, from STARTING to ENDING.
@ -1054,7 +1055,7 @@
markedp face) markedp face)
(cond (cond
(donep (donep
(aset graph index org-habit-completed-glyph) (aset graph index (if todayp org-habit-completed-today-glyph org-habit-completed-glyph))
(setq markedp t) (setq markedp t)
(while (and done-dates (= start (car done-dates))) (while (and done-dates (= start (car done-dates)))
(setq last-done-date (car done-dates)) (setq last-done-date (car done-dates))

Loading…
Cancel
Save