emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Highlight current date in agenda buffer
@ 2009-01-21 17:05 Leo
  2009-01-21 18:52 ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2009-01-21 17:05 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

My friend asked about how to have the current date highlighted when
in the week view of the agenda. Any ideas?

Thanks,
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

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

* Re: Highlight current date in agenda buffer
  2009-01-21 17:05 Highlight current date in agenda buffer Leo
@ 2009-01-21 18:52 ` Bernt Hansen
  2009-01-26  2:11   ` chunhui
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2009-01-21 18:52 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Leo <sdl.web@gmail.com> writes:

> My friend asked about how to have the current date highlighted when
> in the week view of the agenda. Any ideas?

I have the following in my .emacs

(add-hook 'org-agenda-mode-hook '(lambda () (hl-line-mode 1)))

and then just '.' in the agenda goes to today with the hilighted line.
When starting the agenda (week, month view) the current line is always
on today's date for me.

It's not exactly what you want but it Works Great For Me(tm)

I also have the week view starting on today and looking 6 days into the
future so the first day of the current week is always today.

 (setq org-agenda-start-on-weekday nil)

HTH,
Bernt

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

* Re: Highlight current date in agenda buffer
  2009-01-21 18:52 ` Bernt Hansen
@ 2009-01-26  2:11   ` chunhui
  0 siblings, 0 replies; 3+ messages in thread
From: chunhui @ 2009-01-26  2:11 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt <at> norang.ca> writes:


> 
> I have the following in my .emacs
> 
> (add-hook 'org-agenda-mode-hook '(lambda () (hl-line-mode 1)))
> 


It is very nice.thanks.

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

end of thread, other threads:[~2009-01-28 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-21 17:05 Highlight current date in agenda buffer Leo
2009-01-21 18:52 ` Bernt Hansen
2009-01-26  2:11   ` chunhui

Code repositories for project(s) associated with this 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).