Agenda: Allow to start with log mode active

Benjamin Andresen writes:

> I was curious as to why a value such log-mode wasn't customizable
> to be run on start-up as follow-mode and clock-report-mode are.
>
> If Carsten thinks this is a good idea, I've attached a patch that
> may shave of 5 seconds of him adding it. It applies cleanly to
> current git HEAD.

This commit applies Beanjamin's patch
This commit is contained in:
Carsten Dominik 2009-05-14 09:40:53 +02:00
parent b6de229d4e
commit d885d8f686
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-14 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-agenda-start-with-log-mode): New option.
(org-agenda-mode): Use `org-agenda-start-with-log-mode'.
2009-05-13 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-tables-centered): New option.

View File

@ -789,6 +789,12 @@ agenda display."
:group 'org-agenda-daily/weekly
:type 'boolean)
(defcustom org-agenda-start-with-log-mode nil
"The initial value of log-mode in a newly created agenda window."
:group 'org-agenda-startup
:group 'org-agenda-daily/weekly
:type 'boolean)
(defcustom org-agenda-start-with-clockreport-mode nil
"The initial value of clockreport-mode in a newly created agenda window."
:group 'org-agenda-startup
@ -1252,7 +1258,8 @@ The following commands are available:
(unless org-agenda-keep-modes
(setq org-agenda-follow-mode org-agenda-start-with-follow-mode
org-agenda-clockreport-mode org-agenda-start-with-clockreport-mode
org-agenda-show-log nil))
org-agenda-show-log org-agenda-start-with-log-mode))
(easy-menu-change
'("Agenda") "Agenda Files"
(append