* using org-agenda-view-columns-initially option, needs double quit to leave agenda?
@ 2015-10-12 14:54 Xebar Saram
2015-10-12 15:49 ` Marco Wahl
0 siblings, 1 reply; 2+ messages in thread
From: Xebar Saram @ 2015-10-12 14:54 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
Hi all
i discovered today the 'org-agenda-view-columns-initially' option and
really like it. one annoying issue is that after i launch my agenda view ,
in order to exit the agenda view i need to press 'q' twice. once to leave
the column view which gets me back to the agenda view (non column) and then
another 'q' to leave the agenda view
is there anyway around this where 'q' in the agenda column view will close
down the agenda view altogether?
thx
Z
[-- Attachment #2: Type: text/html, Size: 690 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: using org-agenda-view-columns-initially option, needs double quit to leave agenda?
2015-10-12 14:54 using org-agenda-view-columns-initially option, needs double quit to leave agenda? Xebar Saram
@ 2015-10-12 15:49 ` Marco Wahl
0 siblings, 0 replies; 2+ messages in thread
From: Marco Wahl @ 2015-10-12 15:49 UTC (permalink / raw)
To: emacs-orgmode
Hi,
Xebar Saram <zeltakc@gmail.com> writes:
> Hi all
>
> i discovered today the 'org-agenda-view-columns-initially' option and
> really like it. one annoying issue is that after i launch my agenda view ,
> in order to exit the agenda view i need to press 'q' twice. once to leave
> the column view which gets me back to the agenda view (non column) and then
> another 'q' to leave the agenda view
'q' is a way to switch from column view to non-column view. I think
that's reasonable.
> is there anyway around this where 'q' in the agenda column view will close
> down the agenda view altogether?
If you really want you can advice 'org-agenda-quit' (which is bound to
'q' in the agenda) to always quit column view before all other action.
#v+
(advice-add
'org-agenda-quit
:before
(lambda () (if org-agenda-columns-active (org-columns-quit))))
#v-
Another possibility would be to advice 'Q' like
#v+
(advice-add
'org-agenda-Quit
:before
(lambda () (if org-agenda-columns-active (org-columns-quit))))
#v-
All not so well tested.
--
Marco Wahl
GPG: 0x49010A040A3AE6F2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-12 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 14:54 using org-agenda-view-columns-initially option, needs double quit to leave agenda? Xebar Saram
2015-10-12 15:49 ` Marco Wahl
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).