From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: raising frame on capture hack Date: Mon, 23 Jan 2017 15:38:10 +0100 Message-ID: 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]:46708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVflC-0000eZ-0W for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 09:38:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVfl8-0001SQ-UH for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 09:38:18 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15240) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVfl8-0001S0-J9 for emacs-orgmode@gnu.org; Mon, 23 Jan 2017 09:38:14 -0500 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" To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm using the following hack to raise the emacs frame when doing a capture from outside emacs: #+begin_src emacs-lisp (defun as/raise-frame () (select-frame-set-input-focus (selected-frame))) (add-hook 'org-capture-mode-hook 'as/raise-frame) #+end_src Is there a better way? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-12: 404.48, 2015-12: = 401.85 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYhhVTAAoJEAQNCjtO0uXHKUMIALBPdObC7hoa2LRS9KElO2bt I5cKgQnJa2IwhDm+fvaVtMHa6Uiw6yERqXOtnZlnqX+ka6dKuxc5fAs0/TY2AXoD Y7w20BM9Dr88zqseRwDyge1NiIO7ORNpKUlH2dvBc1+bJ6DscIaE3DDq9g2Issoh gsx5dssNpH7bS90miumyqks6fmYSHJfc4lDqhCJvuR3SniNT7OFLTaW0rh8JP755 aHYBl7BD8GLOO1xxYu83UfhoaqVWERhyutmICkclwGsWUXBHFWvWX3VnFhXrrDMU PH+3aSb1zhm2TiOUbKHzMVtssX64Wt/5993VAN/HLhpycmMsqNWdU+Ju74e4nG4= =6XJf -----END PGP SIGNATURE----- --=-=-=--