From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard =?iso-8859-1?Q?Pr=F6ll?= Subject: Re: [feature request] org-capture-window-setup to stop capture window taking up whole frame Date: Tue, 9 Jun 2015 14:35:45 +0200 Message-ID: <20150609123545.GA26022@gmail.com> References: <87zj4ate9f.fsf@pinto.chemeng.ucl.ac.uk> <871thlw193.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Ikz-0004wN-4i for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 08:35:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2Ikv-0001vc-I2 for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 08:35:53 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:36226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Ikv-0001v2-8K for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 08:35:49 -0400 Received: by wgbgq6 with SMTP id gq6so12180825wgb.3 for ; Tue, 09 Jun 2015 05:35:48 -0700 (PDT) Received: from gmail.com (84-112-193-251.dynamic.surfer.at. [84.112.193.251]) by mx.google.com with ESMTPSA id dz4sm2660221wib.17.2015.06.09.05.35.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Jun 2015 05:35:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <871thlw193.fsf@gmail.com> 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 With a lot of windows open the annoying part of =org-capture= is =switch-to-buffer-other-window= for me. My approach is using the current window for the capture buffer: #+BEGIN_SRC elisp (defadvice org-capture (around bp/org-capture--around) (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf))) ad-do-it)) (ad-activate 'org-capture) #+END_SRC