From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [feature request] org-capture-window-setup to stop capture window taking up whole frame Date: Tue, 09 Jun 2015 11:22:52 +0200 Message-ID: References: <87zj4ate9f.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2FkL-00064t-Ub for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 05:23:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2FkI-0004oO-Ln for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 05:23:01 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2FkI-0004lC-FJ for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 05:22:58 -0400 In-Reply-To: <87zj4ate9f.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Mon, 8 Jun 2015 16:23:56 +0100") 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Eric, On 2015-06-08 17:23, Eric S Fraga writes: > as monitors get bigger and bigger, I tend to have lots of (emacs) > windows in a frame. No matter how many I have, org-capture takes over > the whole frame which is kind of wasteful. How about using several frames? For instance I have the following code bound globally in my OS: #+begin_src sh /usr/local/bin/emacsclient -n -e '(make-orgcapture-frame)' #+end_src The function is defined as follows (with some supporting code to delete the frame when I'm done): #+begin_src emacs-lisp (defun make-orgcapture-frame ()=20=20 "Create a new frame and run org-capture."=20=20 (interactive)=20=20 (make-frame '((name . "remember") (width . 80) (height . 16) (top . 400) (left . 300) (font . "-*-Consolas-normal-normal-normal-*-13-*-*-*-m-0-is= o10646-1") )) (select-frame-by-name "remember") (delete-other-windows) (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf))) (org-capture nil "t"))) ;; delete the frame in that case (add-hook 'org-capture-after-finalize-hook (lambda () (when (equal (cdr (assoc 'name (frame-parameters (selected-frame)))) "remember") (delete-frame)))) #+end_src Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Weekly CO=E2=82=82 average (2015-05-30, Mauna Loa Observatory): 403.41 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJVdrBsAAoJEAQNCjtO0uXHvnQH+gM1ThvsWIJu/putRv44rmS5 e8hHQoDf4lftjc3c4hBH3t17Wj2luw3hvaRhC7HXkBAOnEBBwU5QLxY9hIARA8Fl 3PewgRrjoXEdL8kC+E0EdoksMF6EGB2JZEet4b0LaVo9iWsCjBd2RZSxENDTPQjT bCeYtd7CH19McyA/xlPtfJ4YeS/orbhkNJOmP36k4oqnwk1KGEQdYDarH+zgAK75 fZg4aL4heAwRU0X2QW1sU9NVbIpq1wxN8AvW9XNcVxQS/iKdtGRFQ4QF1cLUh/N3 O65xjuqawFZqE0izdsbnoLBrjmAgNrA8OgrL3VKmWLVJP5zUTJPoeRB0i7pKYPA= =Zwym -----END PGP SIGNATURE----- --=-=-=--