emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* diary in agenda
@ 2007-10-02  8:08 Cezar
  2007-10-02  8:39 ` Bastien
  0 siblings, 1 reply; 10+ messages in thread
From: Cezar @ 2007-10-02  8:08 UTC (permalink / raw)
  To: emacs-orgmode



Hello,

  My agenda looks like this:

Thursday   4 October 2007
  Holiday:    Shemini Atzeret
  Diary:      Shemini Atzeret


Any idea why there are duplicates ? And where are those stored cause
they are not in my ~/diary file nor in my todo.org. (I am guessing they
are in the emacs calendar, but why twice).

Also here is my relevant .emacs:

;; Org Mode
(require 'org)
(require 'org-nnml)
(require 'blorg)
(require 'org2rem)
(require 'org-toc)
(require 'org-registry)
(org-registry-initialize)

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))

(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(define-key org-agenda-mode-map "\C-n" 'next-line)
(define-key org-agenda-keymap "\C-n" 'next-line)
(define-key org-agenda-mode-map "\C-p" 'previous-line)
(define-key org-agenda-keymap "\C-p" 'previous-line)

(setq org-todo-keywords
      '((sequence "TODO" "SOMEDAY" "WAITING(w)" "|" "DONE")))
(setq org-agenda-files (quote ("~/todo.org")))
(setq org-default-notes-file "~/notes.org")

(setq org-reverse-note-order t)
(setq org-log-done (quote (done state)))
(setq org-agenda-include-diary t)
(setq org-remember-store-without-prompt t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-show-all-dates t)
(setq org-agenda-ndays 7)
(setq org-deadline-warning-days 14)
(setq org-fast-tag-selection-single-key (quote expert))
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-start-on-weekday nil)
(setq org-directory "~/")
(setq org-todo-keyword-faces
   '(("TODO"      . org-warning)
     ("SOMEDAY"  . (:foreground "pink" :weight bold
                                       :underline nil))
     ("WAITING"  . (:foreground "orange" :weight bold
                                         :underline nil))))
(setq org-agenda-custom-commands
      (quote (("d" todo "DELEGATED" nil)
              ("c" todo "DONE|DEFERRED|CANCELLED" nil)
              ("w" todo "WAITING" nil)
              ("W" agenda "" ((org-agenda-ndays 21)))
              ("A" agenda ""
               ((org-agenda-skip-function
                 (lambda nil
                   (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")))
                (org-agenda-ndays 1)
                (org-agenda-overriding-header "Today's Priority #A tasks: ")))
              ("u" alltodo ""
               ((org-agenda-skip-function
                 (lambda nil
                   (org-agenda-skip-entry-if (quote scheduled) (quote deadline)
                                             (quote regexp) "<[^>\n]+>")))
                (org-agenda-overriding-header "Unscheduled TODO entries: "))))))

;; Lists all matching lines in all of your Agenda files
(defun org-multi-occur (regexp)
  (interactive "sList all lines matching: ")
  (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) regexp))

;; Remember
(require 'remember)
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(setq remember-annotation-functions     '(org-remember-annotation)
      remember-handler-functions        '(org-remember-handler))
(setq org-remember-templates
   (quote ((116 "* TODO %?\n  %u" "~/notes.org" "Tasks")
           (110 "* %u %?" "~/notes.org" "Notes"))))

;; Diary
(setq view-diary-entries-initially t
      mark-diary-entries-in-calendar t
      number-of-diary-entries 7)
(add-hook 'diary-display-hook 'fancy-diary-display)
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02  8:08 diary in agenda Cezar
@ 2007-10-02  8:39 ` Bastien
  2007-10-02 10:08   ` Egli Christian (KIRO 41)
  2007-10-02 19:44   ` Cezar
  0 siblings, 2 replies; 10+ messages in thread
From: Bastien @ 2007-10-02  8:39 UTC (permalink / raw)
  To: emacs-orgmode

Cezar <cezar@mixandgo.ro> writes:

>   My agenda looks like this:
>
> Thursday   4 October 2007
>   Holiday:    Shemini Atzeret
>   Diary:      Shemini Atzeret

What if you set (setq holidays-in-diary-buffer nil)? 

I guess the docstring of `calendar-holidays' might be helpful here.

> (require 'blorg)

Ahem - are you actually using blorg?  If yes, could you provide a link?
I'd be interested in seeing this.  Thanks!

-- 
Bastien

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: diary in agenda
  2007-10-02  8:39 ` Bastien
@ 2007-10-02 10:08   ` Egli Christian (KIRO 41)
  2007-10-02 19:46     ` Cezar
  2007-10-02 19:44   ` Cezar
  1 sibling, 1 reply; 10+ messages in thread
From: Egli Christian (KIRO 41) @ 2007-10-02 10:08 UTC (permalink / raw)
  To: emacs-orgmode


Bastien writes:

> Cezar <cezar@mixandgo.ro> writes:

> >   My agenda looks like this:
> >
> > Thursday   4 October 2007
> >   Holiday:    Shemini Atzeret
> >   Diary:      Shemini Atzeret

> What if you set (setq holidays-in-diary-buffer nil)? 

As far as I know org-mode parses the Fancy Diary Display internally to
find entries from the diary and to add them to the agenda. I think you
can customize the holidays shown by modifying the variables
`christian-holidays', `hebrew-holidays',
and `islamic-holidays'.

As for the duplicates I have no idea. Have you looked at your (fancy)
diary? 

HTH
Christian

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02  8:39 ` Bastien
  2007-10-02 10:08   ` Egli Christian (KIRO 41)
@ 2007-10-02 19:44   ` Cezar
  1 sibling, 0 replies; 10+ messages in thread
From: Cezar @ 2007-10-02 19:44 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@altern.org> writes:

> Cezar <cezar@mixandgo.ro> writes:
>
>>   My agenda looks like this:
>>
>> Thursday   4 October 2007
>>   Holiday:    Shemini Atzeret
>>   Diary:      Shemini Atzeret
>
> What if you set (setq holidays-in-diary-buffer nil)? 

Thanks !

>
> I guess the docstring of `calendar-holidays' might be helpful here.
>
>> (require 'blorg)
>
> Ahem - are you actually using blorg?  If yes, could you provide a link?
> I'd be interested in seeing this.  Thanks!
>

Not yet, but I do admire your work, and of course every one else who
writes code for Emacs.

I will provide you with a link as soon as I get something online.

Regards,
Cezar

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02 10:08   ` Egli Christian (KIRO 41)
@ 2007-10-02 19:46     ` Cezar
  2007-10-02 21:42       ` Christian Egli
  0 siblings, 1 reply; 10+ messages in thread
From: Cezar @ 2007-10-02 19:46 UTC (permalink / raw)
  To: emacs-orgmode


> As far as I know org-mode parses the Fancy Diary Display internally to
> find entries from the diary and to add them to the agenda. I think you
> can customize the holidays shown by modifying the variables
> `christian-holidays', `hebrew-holidays',
> and `islamic-holidays'.
>
> As for the duplicates I have no idea. Have you looked at your (fancy)
> diary? 
>
> HTH
> Christian

Thanks, I didn't know that !

Really helpfull.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02 19:46     ` Cezar
@ 2007-10-02 21:42       ` Christian Egli
  2007-10-02 23:16         ` Bastien
  2007-10-06  7:51         ` Renzo Been
  0 siblings, 2 replies; 10+ messages in thread
From: Christian Egli @ 2007-10-02 21:42 UTC (permalink / raw)
  To: emacs-orgmode


Hm, I followed my own advice and set *-holidays to nil, but the
holidays still show up in the agenda (so I guess you cannot disable
holidays by tweaking these cars). Have to study the code some more
as to how to get rid of these holiday entries in the agenda.

Cezar <cezar@mixandgo.ro> writes:

>> As far as I know org-mode parses the Fancy Diary Display internally to
>> find entries from the diary and to add them to the agenda. I think you
>> can customize the holidays shown by modifying the variables
>> `christian-holidays', `hebrew-holidays',
>> and `islamic-holidays'.
>>
>> As for the duplicates I have no idea. Have you looked at your (fancy)
>> diary? 
>>
>> HTH
>> Christian
>
> Thanks, I didn't know that !
>
> Really helpfull.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: diary in agenda
  2007-10-02 21:42       ` Christian Egli
@ 2007-10-02 23:16         ` Bastien
  2007-10-02 23:22           ` Carsten Dominik
  2007-10-03 21:12           ` Christian Egli
  2007-10-06  7:51         ` Renzo Been
  1 sibling, 2 replies; 10+ messages in thread
From: Bastien @ 2007-10-02 23:16 UTC (permalink / raw)
  To: emacs-orgmode

Christian Egli <christian.egli@novell.com> writes:

> Hm, I followed my own advice and set *-holidays to nil, but the
> holidays still show up in the agenda (so I guess you cannot disable
> holidays by tweaking these cars). Have to study the code some more
> as to how to get rid of these holiday entries in the agenda.

Thursday   4 October 2007
  Holiday:    Shemini Atzeret
  Diary:      Shemini Atzeret

The strange thing here is the "Holiday:" line. 

AFAIK, all diary entries that Org adds fall in the "Diary" category.
Please tell us about the solution when you find it!

-- 
Bastien

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: diary in agenda
  2007-10-02 23:16         ` Bastien
@ 2007-10-02 23:22           ` Carsten Dominik
  2007-10-03 21:12           ` Christian Egli
  1 sibling, 0 replies; 10+ messages in thread
From: Carsten Dominik @ 2007-10-02 23:22 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


On Oct 3, 2007, at 1:16, Bastien wrote:

> Christian Egli <christian.egli@novell.com> writes:
>
>> Hm, I followed my own advice and set *-holidays to nil, but the
>> holidays still show up in the agenda (so I guess you cannot disable
>> holidays by tweaking these cars). Have to study the code some more
>> as to how to get rid of these holiday entries in the agenda.
>
> Thursday   4 October 2007
>   Holiday:    Shemini Atzeret
>   Diary:      Shemini Atzeret
>
> The strange thing here is the "Holiday:" line.


>
> AFAIK, all diary entries that Org adds fall in the "Diary" category.
> Please tell us about the solution when you find it!


Seems to me that the holidays are pulled in from an sexp entry in an 
org-mode
file, with category "holiday".

- Carsten

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02 23:16         ` Bastien
  2007-10-02 23:22           ` Carsten Dominik
@ 2007-10-03 21:12           ` Christian Egli
  1 sibling, 0 replies; 10+ messages in thread
From: Christian Egli @ 2007-10-03 21:12 UTC (permalink / raw)
  To: emacs-orgmode

Hi

Bastien <bzg@altern.org> writes:

> Christian Egli <christian.egli@novell.com> writes:
>
>> Hm, I followed my own advice and set *-holidays to nil, but the
>> holidays still show up in the agenda (so I guess you cannot disable
>> holidays by tweaking these cars). Have to study the code some more
>> as to how to get rid of these holiday entries in the agenda.
>
> Thursday   4 October 2007
>   Holiday:    Shemini Atzeret
>   Diary:      Shemini Atzeret
>
> The strange thing here is the "Holiday:" line. 
>
> AFAIK, all diary entries that Org adds fall in the "Diary" category.
> Please tell us about the solution when you find it!

Don't know about the Holiday line. I think that was the OPs
problem. My issue is that I want to see the diary entries in my agenda
without the holidays (such as e.g. Shemini Atzeret). As I found out
setting {christian|hebrew|islamic|etc}-holidays to nil doesn't help. 

Some more digging in org.el, calendar.el and holidays.el revealed that
you can either disable the display of holidays altogether in your
agenda or only show specific holidays. For the former set
holidays-in-diary-buffer to nil and for the latter customize
calendar-holidays.

HTH
Christian

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: diary in agenda
  2007-10-02 21:42       ` Christian Egli
  2007-10-02 23:16         ` Bastien
@ 2007-10-06  7:51         ` Renzo Been
  1 sibling, 0 replies; 10+ messages in thread
From: Renzo Been @ 2007-10-06  7:51 UTC (permalink / raw)
  To: emacs-orgmode

Setting: 

(setq holidays-in-diary-buffer nil) 

in my .emacs removed all the holidays from my agenda views... 

Ciao,
Renzo

Christian Egli <christian.egli <at> novell.com> writes:

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-06  7:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02  8:08 diary in agenda Cezar
2007-10-02  8:39 ` Bastien
2007-10-02 10:08   ` Egli Christian (KIRO 41)
2007-10-02 19:46     ` Cezar
2007-10-02 21:42       ` Christian Egli
2007-10-02 23:16         ` Bastien
2007-10-02 23:22           ` Carsten Dominik
2007-10-03 21:12           ` Christian Egli
2007-10-06  7:51         ` Renzo Been
2007-10-02 19:44   ` Cezar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).