[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] org-habit: custom consistency graph placement [9.3.7 (release_9.

From: No Wayman
Subject: [PATCH] org-habit: custom consistency graph placement [9.3.7 (release_9.3.7-716-g6d5cab @ /home/n/.emacs.d/straight/build/org/)]
Date: Thu, 20 Aug 2020 14:41:57 -0400
User-agent: mu4e 1.5.5; emacs 28.0.50

I like seeing a month long habit consistency graph, but this usually overwrites most of the information on each agenda habit line unless the window is particularly wide. The attached patch adds a customizable option to place the graph. I'm using it now to place each habit's graph on a new line below the habit at `org-habit-graph-column'. It makes this sort of customization very simple, e.g.

 (setq org-habit-insert-graph-function
       (lambda (graph)
         (goto-char (point-at-eol))
         (insert "\n")
         (move-to-column org-habit-graph-column t)
         (insert graph)))

Would love to see it included in org-habit.

Nicholas Vollmer

Attachment: 0001-habit-add-custom-option-for-placing-consistency-grap.patch
Description: org-habit-insert-graph-function

reply via email to

[Prev in Thread] Current Thread [Next in Thread]