emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Daniele Pizzolli <dan@toel.it>
Cc: emacs-orgmode@gnu.org
Subject: Re: "Capture"-like browser plugin?
Date: Fri, 24 Jul 2015 09:22:29 +0200	[thread overview]
Message-ID: <m2pp3ihvey.fsf@polytechnique.org> (raw)
In-Reply-To: <86zj2nzzzz3p8k@me.localhost.invalid> (Daniele Pizzolli's message of "Thu, 23 Jul 2015 16:47:23 +0200")

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

Hello Daniele,

On 2015-07-23 16:47, Daniele Pizzolli <dan@toel.it> writes:

> if you use firefox, see:
>
> https://addons.mozilla.org/it/firefox/addon/org-mode-capture/
>
> The latest version convert html links to org-links (disclaimer: it is my
> little contribution).

This is great! If I may suggest an addition to it: being able to specify
how one calls emacs. Indeed, my emacsclient is a symbolic link to the
real one, which may change as I update it, but the preference interface
of the addon only gives me the target of the symbolic link.

I have also a small issue with org-protocol: it creates a new frame
(which is great) but does not raise it, and it displays two windows: the
capture one and an unrelated one. I have some code to avoid this when
I call org-capture from my system:

#+begin_src emacs-lisp
(defun make-orgcapture-frame ()  
  "Create a new frame and run org-capture."  
  (interactive)  
  (make-frame '((name . "remember") (width . 80) (height . 16)
                (top . 400) (left . 300)
                (font . "-*-Consolas-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")
                ))
  (select-frame-by-name "remember")
  (delete-other-windows)
  (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf)))
    (org-capture nil "c")))
#+end_src

but I don’t know how to integrate this with org-protocol. Is there a way
to change its call to org-capture without having to rewrite the
`org-protocol-do-capture' function?

Thanks!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated July 19, 2015, Mauna Loa Obs.):
401.39 ppm

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

  reply	other threads:[~2015-07-24  7:22 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 14:18 "Capture"-like browser plugin? Peter Davis
2015-07-23 14:37 ` Jonathan Leech-Pepin
2015-07-23 14:39 ` Loris Bennett
2015-07-23 14:44 ` Cook, Malcolm
2015-07-23 14:47 ` Peter Davis
2015-07-23 14:47 ` Daniele Pizzolli
2015-07-24  7:22   ` Alan Schmitt [this message]
2015-07-28 18:58   ` Peter Davis
2015-07-28 21:20     ` Alan Schmitt
2015-07-28 22:10       ` Bob Newell
2015-07-28 22:33         ` Ken Mankoff
2015-07-29 12:27       ` Peter Davis
2015-07-29 13:03     ` Daniele Pizzolli
2015-07-29 13:18       ` Peter Davis
2015-07-29 14:05         ` Alan Schmitt
2015-07-29 14:17           ` Peter Davis
2015-07-29 14:59             ` Nick Dokos
2015-07-29 15:51               ` Peter Davis
2015-07-29 17:04                 ` Peter Davis
2015-07-29 18:23                   ` Nick Dokos
2015-07-29 19:35                     ` Peter Davis
2015-09-17 20:58   ` Samuel Wales
2015-09-18 14:03     ` Daniele Pizzolli
2015-09-18 21:25       ` Samuel Wales
2015-09-18 21:50         ` Samuel Wales
2015-10-01  0:09           ` Peter Salazar
2015-11-11 21:57             ` Samuel Wales
2015-07-29 19:48 ` Jay Dresser
2015-07-30 11:15   ` Nick Dokos

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=m2pp3ihvey.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=dan@toel.it \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

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).