Re: [O] Habits in agenda view

2012-02-27 Thread Michael Brand
Hi Renger

Not sure why you want to skip habits in tags-todo, they should not
appear anyway. Try:

(s Agenda with Next and Habit as separated views
 ((agenda 
  ((org-habit-show-habits nil)))
  (tags-todo -WAIT/!NEXT
 ((org-agenda-overriding-header Next Tasks)
  (org-agenda-skip-function 'skip-projects-and-habits)
  (org-agenda-skip-function '(org-agenda-skip-entry-if
'notregexp \\[#A\\]))
  (org-agenda-todo-ignore-scheduled t)
  (org-agenda-todo-ignore-deadlines t)
  (org-tags-match-list-sublevels t)
  ))
  (agenda HABIT
  ((org-agenda-overriding-header Habits)
   (org-agenda-entry-types '(:scheduled))
   (org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp :STYLE:.*habit))

See also this thread:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00665.html

Michael



[O] Habits in agenda view

2012-02-26 Thread Renger van Nieuwkoop
Hi
I want to change my agenda view in such a way, that habits are shown as an 
explicit block below my agenda, but my solution (shown below) shows the habits 
still in my agenda view and without all the nice tracking color and symbols in 
the block below the agenda. It might be simple, but I don't seem to manage. Any 
help would be appreciated.

Here is my code for the adjusted agenda view (the first block shows my tasks I 
should work on next:

(s Agenda with Next and Habit as separated views
((agenda  nil )
(tags-todo -WAIT/!NEXT
   ((org-agenda-overriding-header Next Tasks)
(org-agenda-skip-function 'skip-projects-and-habits)
(org-agenda-skip-function 
'(org-agenda-skip-entry-if 'notregexp \\[#A\\]))
(org-agenda-todo-ignore-scheduled t)
(org-agenda-todo-ignore-deadlines t)
(org-tags-match-list-sublevels t)
 ))
 (tags HABIT
  ((org-agenda-overriding-header Habits)))
 nil))
Cheers
Renger



Re: [O] Habits in agenda view

2012-02-26 Thread Viktor Rosenfeld
Hi Renger,

why not use two differently configured agenda blocks in your agenda
view. In the first you skip habits and in the second you skip everything
else.

Cheers,
Viktor

Renger van Nieuwkoop wrote:

 Hi
 I want to change my agenda view in such a way, that habits are shown as an 
 explicit block below my agenda, but my solution (shown below) shows the 
 habits still in my agenda view and without all the nice tracking color and 
 symbols in the block below the agenda. It might be simple, but I don't seem 
 to manage. Any help would be appreciated.
 
 Here is my code for the adjusted agenda view (the first block shows my tasks 
 I should work on next:
 
 (s Agenda with Next and Habit as separated views
 ((agenda  nil )
 (tags-todo -WAIT/!NEXT
((org-agenda-overriding-header Next Tasks)
 (org-agenda-skip-function 
 'skip-projects-and-habits)
 (org-agenda-skip-function 
 '(org-agenda-skip-entry-if 'notregexp \\[#A\\]))
 (org-agenda-todo-ignore-scheduled t)
 (org-agenda-todo-ignore-deadlines t)
 (org-tags-match-list-sublevels t)
  ))
  (tags HABIT
   ((org-agenda-overriding-header Habits)))
  nil))
 Cheers
 Renger