From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-mode habits graph dissapears Date: Thu, 19 Dec 2013 13:14:48 -0800 Message-ID: <87d2ksilvb.fsf@gmail.com> References: <87y53kjt9e.fsf@gmail.com> <87d2kuk78m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtkvt-0005c0-Sl for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:15:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vtkvl-00062q-Fz for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:15:01 -0500 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:60350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtkvl-00062e-8f for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:14:53 -0500 Received: by mail-pa0-f53.google.com with SMTP id hz1so1692210pad.40 for ; Thu, 19 Dec 2013 13:14:52 -0800 (PST) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Javier Ortiz Cc: Org Mode --=-=-= Content-Type: text/plain Javier Ortiz writes: > Thank you for your response! Please CC the org-mode list in your responses. Others can join the conversation and the results will be archived for use by future users. > I added > (defcustom org-habit-show-all-today nil > "If non-nil, will show the consistency graph of all habits on > today's agenda, even if they are not scheduled." > :group 'org-habit > :type 'boolean) Here I was just quoting from org-habit.el. This is not something you would add you your .emacs. > To my .emacs file, restarted emacs, then =C-a a=, but I don't see the > consistency graph again. Should I try something else? I'm still not exactly sure what behavior you want, but it seems like you want to customize one or the other of ,---- | (defcustom org-habit-show-habits-only-for-today t | "If non-nil, only show habits on today's agenda, and not for future days. | Note that even when shown for future days, the graph is always | relative to the current effective date." | :group 'org-habit | :type 'boolean) `---- ,---- | (defcustom org-habit-show-all-today nil | "If non-nil, will show the consistency graph of all habits on | today's agenda, even if they are not scheduled." | :group 'org-habit | :type 'boolean) `---- For example, suppose that I want habits shown today and at their future scheduled date. Then with the attached minimal startup file (adjust paths as necessary and start emacs with "emacs -Q -l minimal-org.el") and orgmode 8.2.4, I see consistency graphs as one expects. Josiah --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=minimal-org.el Content-Transfer-Encoding: quoted-printable ;;; Minimal setup to load latest `org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name "/path/to/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "/path/to/org-mode/contrib/lisp" = t)) ;; org-agenda keybinding (define-key global-map "\C-ca" 'org-agenda) ;; attempt to reproduce habit issue (setq org-modules '(org-habit)) (setq org-agenda-files '("/path/to/habit.org")) ;; show habits in the future (setq org-habit-show-habits-only-for-today nil) ;; show all habits today (setq org-habit-show-all-today t) --=-=-=--