From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: using org-agenda-view-columns-initially option, needs double quit to leave agenda? Date: Mon, 12 Oct 2015 17:49:49 +0200 Message-ID: <84fv1gcciq.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfMY-0005hJ-RV for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 11:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlfMU-0007KZ-M5 for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 11:50:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:35202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfMU-0007JH-Fi for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 11:50:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZlfMQ-0000NZ-Jd for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 17:50:02 +0200 Received: from x5f717d44.dyn.telefonica.de ([95.113.125.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2015 17:50:02 +0200 Received: from marcowahlsoft by x5f717d44.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2015 17:50:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Xebar Saram 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