all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Richard Riley <rileyrgdev@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-protocol and web links
Date: Tue, 06 Apr 2010 16:14:59 -0400	[thread overview]
Message-ID: <87iq84pccc.fsf@fastmail.fm> (raw)
In-Reply-To: <j43s87-6ij.ln1@news.eternal-september.org> (Richard Riley's message of "Tue, 06 Apr 2010 18:12:31 +0200")

Hi Richard,

Richard Riley <rileyrgdev@gmail.com> writes:

> Does anyone have a "w" template  which can  store a hot link using the
> page title (not just the url) in addition to the selection under the
> title line? The problem I find is that I havent got the combo right to
> do this : if I select something on a conkeror page and then call
> org-remember the selection becomes the %c which is usually used to store
> an encoded title and url org link.
>
> e.g I want my new org item first line to be something like the following
> if I invoke org-remember from conkeror on a web page having first
> hilited "blah blah" somewhere on the page

With the following org-remember-template:

--8<---------------cut here---------------start------------->8---
(setq org-remember-templates
      '(
	;; other templates here
	("protocol" ?w "* %c\n %U\n\n %i" nil bottom nil)
	))
--8<---------------cut here---------------end--------------->8---

I get the following when I select text on the org-mode home page in
conkeror and call org-protocol-remember (which I have bound to C-c r in
conkeror):

--8<---------------cut here---------------start------------->8---
* [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]]
 [2010-04-06 Tue 16:07]

 Org-mode is for keeping notes, maintaining ToDo lists, doing project
 planning, and authoring with a fast and effective plain-text system.
--8<---------------cut here---------------end--------------->8---

What do you have in your conkerorrc? I'm currently using the setup I put
up on the org-protocol page on Worg:

http://orgmode.org/worg/org-contrib/org-protocol.php#sec-8.1

Best,
Matt

  reply	other threads:[~2010-04-06 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06 16:12 org-protocol and web links Richard Riley
2010-04-06 20:14 ` Matt Lundin [this message]
2010-04-07 11:55   ` Richard Riley

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

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

  git send-email \
    --in-reply-to=87iq84pccc.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@gmail.com \
    /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 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.