From mboxrd@z Thu Jan 1 00:00:00 1970 From: Micah Anderson Subject: org-capture-hook only when in frame? Date: Tue, 20 Sep 2011 18:45:31 -0400 Message-ID: <87pqiual4k.fsf@algae.riseup.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R694W-0007yH-Rj for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 18:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R694V-0000jD-Ts for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 18:45:48 -0400 Received: from lo.gmane.org ([80.91.229.12]:55496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R694V-0000j5-Kc for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 18:45:47 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R694R-0005bE-E6 for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 00:45:43 +0200 Received: from 209.234.253.228 ([209.234.253.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Sep 2011 00:45:43 +0200 Received: from micah by 209.234.253.228 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Sep 2011 00:45:43 +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 --=-=-= Content-Transfer-Encoding: quoted-printable I have a function to create a frame for capture mode that I can call with emacsclient at any time: ;; Initialization of capture frames (defun make-capture-frame () "Create a new frame and run org-capture" (interactive)=20=20 (make-frame '((name . "capture") (width . 80) (height . 10))) (select-frame-by-name "capture") ;; Org-remember splits windows, force it to a single window (add-hook 'org-capture-mode-hook 'delete-other-windows) (org-capture) ) This works great, however I actually would like org-capture-mode to split the screen when I am *not* calling this function, but it seems like when I have this existing, it deletes the other window even when I am inside the original emacs. thanks for any hints! micah =2D-=20 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCgAGBQJOeReLAAoJEIy/mjIoYaeQ878P/idikRkrLFjF61LR/diRyWRZ jaCbEel77lbr0PecUpBWNBwLK8NAd86bfBzbTOuLf6KGIIZ8t/9c3o49pH3hc7ah +t3GkAXlX5u4piTyyAQ4PRRYFBcRkNi9H6hsqte1DGubKCwh6DW9oofftJGpG3Hs 9g4RbQmncY/KOYo+l5jZGY0MEJ7aParwygTR6ce4aFx7hST/d4TmlHkVjZHgaLhA tj5UkZPZ4cvGjL06eLuEcTJ4/HPdHo7CL/Uj9hzEpiK6wFm9fqp/ATxHCaVkE+nz ctRvWPzSJcUFrgruTYbxhPNMBAg2PBsNOQAtaBjXPXdaGCnFIPE5Kj65G9Ev8Xx2 gp69oGo3VMkmhfUSAkdLab42UXuXoCPgGydlSSUkRV3kT/1Sj0SEZK2z5MIq6us3 KYVfwn/kUeYpfW7qhzVmcPbZHJTdZxaeICavbmHt6KBLVxgeGtNrmo117BRymXMt v+SG7IfICgi+S63wu40eXyWB1ZfOfL5OnwqtaCii54hGbs4k/Vav2+Cnrt9Vgb3F yxJUVpbvotBLdpIZVq5iTkbgvg5EQyO+m3EA6ZzdHaNyliPcmLCCP6YDBhW6zSp6 VgOmwDPIOrcOi0cZ1rL4QACIQi6eaXPOIgq3U5HS1oTmEWaoLMfYqunVieM5bv7o hfkXksO7l8s73C0QQyOM =QDaH -----END PGP SIGNATURE----- --=-=-=--