emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* capture whenever
@ 2012-07-12  8:49 Paul Whipp
  0 siblings, 0 replies; only message in thread
From: Paul Whipp @ 2012-07-12  8:49 UTC (permalink / raw)
  To: emacs-orgmode

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

I had trouble getting org-capture to behave from a hotkey:

It worked fine but would not give the emacs buffer focus making it pretty

I worked around the problem using wmctrl (which is in the debian/ubuntu
repos). I created a small script:


wmctrl -Fa 'emacs@dev'
emacsclient org-protocol:/capture:/foo/

where 'emacs@dev' is the title of my main emacs window when it comes up.

The script works fine even though the window's title changes when I use
multiple windows.

Now when I hit the pause key, the script runs and I can capture the thought
or snippet without interrupting what I'm doing.

I'm sure there is a better way but this works. It would be nice to avoid
needing wmctrl (I searched in vain for the 'give focus' option on
emacsclient) and to be able to drop the '/foo/' (without which it breaks).

Thanks for the help getting there.

Paul Whipp

Office: 07 3103 2894
Mobile: 0410 545 357

Do more business with your website! <http://www.paulwhippconsulting.com.au>

Joomla, Python, PHP and MySQL web application

[-- Attachment #2: Type: text/html, Size: 1581 bytes --]

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

only message in thread, other threads:[~2012-07-12  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12  8:49 capture whenever Paul Whipp

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).