Org-mode mailing list
 help / color / mirror / Atom feed
From: Maxim Nikulin <>
Subject: Re: idea for capture anywhere in x
Date: Tue, 8 Sep 2020 14:18:38 +0700
Message-ID: <rj7b8g$16mq$> (raw)
In-Reply-To: <>

08.09.2020 12:21, Tim Cross wrote:
> How you add this to a window manager menu or key binding will depend on
> your window manager, but essentially, you just calling emacscleint with
> the argument -e (org-capture). You may need to quote the command to
> prevent shell interpolation of the command and you may need to add other
> arguments, such as -n or --no-wait etc.

Good point. However playing with a script for org protocol, I realized 
that there could be no emacs frame yet, so I added --create-frame 
depending on output of

emacsclient --quiet --eval \
   "(seq-some (lambda (f) (if (eq 'x (framep f)) 'has-frame 'no-frame)) 
(frame-list))" \

Another point is to provide feedback (notify-send, kdialog, zenity, 
etc.) if emacs server is not running at all (non-zero exit code of the 
shell command above). Though since Samuel is already using org-protocol, 
it should not be a problem.

  reply	other threads:[~2020-09-08  7:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  4:22 Samuel Wales
2020-09-08  5:01 ` Tim Cross
2020-09-08  5:05   ` Samuel Wales
2020-09-08  5:21     ` Tim Cross
2020-09-08  7:18       ` Maxim Nikulin [this message]
2020-09-08  8:03         ` Diego Zamboni
2020-09-08 16:08           ` Maxim Nikulin
2020-09-08  5:39     ` Maxim Nikulin
2020-09-08 22:40       ` Samuel Wales
2020-09-09  4:52         ` Maxim Nikulin
2020-09-10 14:23           ` Maxim Nikulin
2020-09-12  8:48             ` Nick Econopouly
2020-09-09  8:40     ` Russell Adams
2020-09-09 21:11       ` Samuel Wales
2020-09-09  1:07 ` Ihor Radchenko
     [not found] <>
2020-09-08 23:15 ` No Wayman
2020-09-13 20:29   ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='rj7b8g$16mq$' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ \
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone