emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to make TAB in agenda cycle the outline
@ 2009-06-01 19:50 Samuel Wales
  2009-06-03 10:13 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2009-06-01 19:50 UTC (permalink / raw)
  To: emacs-orgmode

I am trying to make TAB in the agenda cycle the node in the other
window, while keeping point in the agenda (ideally creating the other
window via SPC if it doesn't already exist).  I am finding it a little
difficult.  Any tips?

Thanks.

P.S.  Is there a reason why point is at bob in the agenda?  If not,
maybe moving it to the first headline would be useful (dired does
something similar).

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

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

* Re: how to make TAB in agenda cycle the outline
  2009-06-01 19:50 how to make TAB in agenda cycle the outline Samuel Wales
@ 2009-06-03 10:13 ` Carsten Dominik
  2009-06-03 11:55   ` Bernt Hansen
  2009-06-03 23:58   ` Samuel Wales
  0 siblings, 2 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-06-03 10:13 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode


On Jun 1, 2009, at 9:50 PM, Samuel Wales wrote:

> I am trying to make TAB in the agenda cycle the node in the other
> window, while keeping point in the agenda (ideally creating the other
> window via SPC if it doesn't already exist).  I am finding it a little
> difficult.  Any tips?

Since TAB is used to go to the location in another window, I would  
recommend using SPACE for this purpose:

(add-hook 'org-agenda-mode-hook
   (lambda ()
     (define-key org-agenda-keymap " " 'org-agenda-cycle-show)
     (define-key org-agenda-mode-map " " 'org-agenda-cycle-show)))

If you prefer TAB, use

(add-hook 'org-agenda-mode-hook
   (lambda ()
     (define-key org-agenda-keymap [tab] 'org-agenda-cycle-show)
     (define-key org-agenda-mode-map [tab] 'org-agenda-cycle-show)))

`org-agenda-cycle-show' does almost, but not quite what org-cycle does.
On first call, it just shows the entry like SPACE would.
Further calls expose more context, including eventually even
the LOGBOOK, before switching back to a folded state.

I wrote this command a while ago and wanted to bind it to
SPC by default,  but something must have stopped me back then.
Maybe, if a few people use this now, we can still decide to do so.

- Carsten


>
> Thanks.
>
> P.S.  Is there a reason why point is at bob in the agenda?  If not,
> maybe moving it to the first headline would be useful (dired does
> something similar).

In the agenda, the cursor stars out on the date line for TODAY.

- Carsten

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

* Re: how to make TAB in agenda cycle the outline
  2009-06-03 10:13 ` Carsten Dominik
@ 2009-06-03 11:55   ` Bernt Hansen
  2009-06-03 23:58   ` Samuel Wales
  1 sibling, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2009-06-03 11:55 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode, Carsten Dominik

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Jun 1, 2009, at 9:50 PM, Samuel Wales wrote:
>
>> P.S.  Is there a reason why point is at bob in the agenda?  If not,
>> maybe moving it to the first headline would be useful (dired does
>> something similar).
>
> In the agenda, the cursor stars out on the date line for TODAY.

My agenda displays starting today and looks forward for a week so the
cursor is always at the top.

See the variable org-agenda-start-on-weekday  (I've set this value to
nil)

HTH,
-Bernt

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

* Re: how to make TAB in agenda cycle the outline
  2009-06-03 10:13 ` Carsten Dominik
  2009-06-03 11:55   ` Bernt Hansen
@ 2009-06-03 23:58   ` Samuel Wales
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Wales @ 2009-06-03 23:58 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Thanks!  That works.

On Wed, Jun 3, 2009 at 03:13, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> (add-hook 'org-agenda-mode-hook
>  (lambda ()
>    (define-key org-agenda-keymap [tab] 'org-agenda-cycle-show)
>    (define-key org-agenda-mode-map [tab] 'org-agenda-cycle-show)))

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

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

end of thread, other threads:[~2009-06-03 23:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-01 19:50 how to make TAB in agenda cycle the outline Samuel Wales
2009-06-03 10:13 ` Carsten Dominik
2009-06-03 11:55   ` Bernt Hansen
2009-06-03 23:58   ` Samuel Wales

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).