From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Keep buffer visible w/ capture template Date: Wed, 13 Jan 2016 15:04:35 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJRet-0003mY-5T for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 15:04:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJReo-0006KU-52 for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 15:04:43 -0500 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:35958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJReo-0006KQ-0w for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 15:04:38 -0500 Received: by mail-qg0-x236.google.com with SMTP id e32so374990446qgf.3 for ; Wed, 13 Jan 2016 12:04:37 -0800 (PST) In-reply-to: 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: Kaushal Modi Cc: Org Mode On 2016-01-13 at 13:17, Ken Mankoff wrote: > On 2016-01-13 at 13:08, Kaushal Modi wrote: >>> I'd like to keep the active buffer visible while capturing. > >I think the issue is that the template requests a timestamp or a >SCHEDULED field (or as you describe, you may add those manually). The >email usually has the date/time information visible, but the calendar >hides it, making it difficult to fill out the template. That is my >issue. The current window flow is > > 1) View email 2) Invoke capture. See email + *Org Select* buffer 3) > Select template. See *Capture* buffer and calendar buffer. > > I'd like to still see the email in step (3). I've found two solutions to this. 1) (setq calendar-setup (quote calendar-only)) makes the calendar appear in a new frame. However, their are weird side effects and the mini-buffer used to enter the date/time is in another frame, and not the one where the capture was invoked. OR 2) (defun kdm/position-calendar-buffer (buffer alist) (display-buffer-at-bottom buffer alist)) (add-to-list 'display-buffer-alist (cons "\\*Calendar\\*" (cons #'kdm/position-calendar-buffer nil))) Splits the window in 3, so I have 1) capture template 2) original text and 3) calendar. -k.