From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: using org-agenda-view-columns-initially option, needs double quit to leave agenda?
Date: Mon, 12 Oct 2015 17:49:49 +0200 [thread overview]
Message-ID: <84fv1gcciq.fsf@gmail.com> (raw)
In-Reply-To: CAOQHXPpcsw0BV9Wq6JYb+s39nTFoq4eer_q2VCeKfCCuwJRBgQ@mail.gmail.com
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
prev parent reply other threads:[~2015-10-12 15:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84fv1gcciq.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).