all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* raising frame on capture hack
@ 2017-01-23 14:38 Alan Schmitt
  0 siblings, 0 replies; only message in thread
From: Alan Schmitt @ 2017-01-23 14:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

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

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-23 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-23 14:38 raising frame on capture hack Alan Schmitt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.