From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Fantin Subject: Re: cannot enable org-habit Date: Fri, 3 Sep 2010 15:09:41 +0200 Message-ID: References: <87fwxsyzsd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=43601 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrW2U-0001qT-Iw for Emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:11:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrW2B-0003Ec-Vm for Emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:10:25 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:34760) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrW2B-0003EJ-OK for Emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:10:23 -0400 Received: by pwj6 with SMTP id 6so493321pwj.0 for ; Fri, 03 Sep 2010 06:10:22 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joseph Buchignani Cc: "Emacs-orgmode@gnu.org" , Noorul Islam , Bastien Joseph, it's already all here, but for the sake of clarity : ;; Enable state logging enable for the TODO state i.e. the "!" part (setq org-todo-keywords (quote ((sequence "TODO(t!)" "NEXT(n!)" "|" "DONE(d!)") (sequence "WAIT(w@/!)" "SOMEDAY(s@/!)" "|" "CANCELLED(c@/!)")))) ;; Add it to the list of modules (add-to-list 'org-modules 'org-habit) ;; And finally require it (require 'org-habit) Happy habit monitoring :) Cheers On Thu, Sep 2, 2010 at 8:04 PM, Joseph Buchignani wrote: > Julien, it sounds like you're doing something different than what's in th= e > manual. > > Could you paste exactly the code you used in your .emacs to include > org-habit in the modules list and then activate it? I guess it would be t= wo > separate lines? > > Thanks, > JB > > On Fri, Sep 3, 2010 at 1:26 AM, Julien Fantin > wrote: >> >> Thanks Noorul, this helped me fix the error, and I now have it working ! >> I should mention that I do need to (require 'org-habit) after it's >> been added to the modules list, in order to actually activate it. >> >> >> >> On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam wrote: >> > On Thursday, September 2, 2010, Julien Fantin >> > wrote: >> >> I'm watching this as I wasn't able to enable this module either. >> >> >> >> I have state logging enable with : >> >> =C2=A0=C2=A0(setq org-todo-keywords >> >> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0(quote >> >> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 ((sequence "TODO(t!)" "NEXT(n!)" "|= " "DONE(d!)") >> >> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(sequence "WAIT(w@/!)" "SOMED= AY(s@/!)" "|" >> >> "CANCELLED(c@/!)")))) >> >> >> >> And org-habit is configured with : >> >> =C2=A0(add-to-list 'org-modules 'org-habit) >> >> >> >> Which doesn't seems to work either... >> >> >> >> If I try o (require 'org-habit) though, I'll get an error when >> >> building the agenda with C-c a a : >> >> org-habit-duration-to-days: Wrong type argument: stringp, nil >> >> >> > >> > If you pull the latest version from git repo, you won't get this >> > error, instead a meaningful error message will be displayed. >> > >> > Thanks and Regards >> > Noorul >> > > > > > -- > Ignore the following. It is a nonsense sentence that disables Google ads > from displaying next to my emails by triggering sensitive keywords. > > I enjoy the massacre of ads. This sentence will slaughter ads without a > messy bloodbath. >