From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16880 Path: news.gmane.org!not-for-mail From: Gareth Smith Newsgroups: gmane.emacs.gnus.user Subject: Re: copy & pasting to also include hyperlinks Date: Sun, 11 May 2014 11:39:42 +0100 Message-ID: <878uq8y4y9.fsf@totherme.org> References: <87vbu4jii3.fsf@talktalk.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399805421 27524 80.91.229.3 (11 May 2014 10:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 10:50:21 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun May 11 12:50:16 2014 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WjRKi-0004G7-CR for gegu-info-gnus-english@m.gmane.org; Sun, 11 May 2014 12:50:16 +0200 Original-Received: from localhost ([::1]:60568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRKh-0005sL-Vo for gegu-info-gnus-english@m.gmane.org; Sun, 11 May 2014 06:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRKb-0005sF-Ad for info-gnus-english@gnu.org; Sun, 11 May 2014 06:50:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjRKW-0004el-BW for info-gnus-english@gnu.org; Sun, 11 May 2014 06:50:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRKW-0004br-5z for info-gnus-english@gnu.org; Sun, 11 May 2014 06:50:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WjRKV-0003ry-3u for info-gnus-english@gnu.org; Sun, 11 May 2014 12:50:03 +0200 Original-Received: from host109-157-148-235.range109-157.btcentralplus.com ([109.157.148.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 May 2014 12:50:03 +0200 Original-Received: from gareth by host109-157-148-235.range109-157.btcentralplus.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 May 2014 12:50:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host109-157-148-235.range109-157.btcentralplus.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:uyOIDijgL1FBLfrLGdNubzuqAk0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16880 Archived-At: Sharon Kimble writes: > I'm subscribed to several sites using their rss feed, and occasionally > I like to save the content by highlighting everything and then copy > and pasting it to an org document. I see your question has been answered properly elsewhere, but just in case it's helpful to think around the edge of the topic: I never copy-paste emails into org, because I find it more convenient to use org-capture to automatically create hyperlinks to the emails themselves instead. Of course, it may be that you know about org-capture and have excellent reasons why it doesn't suit your use-case here. However, just in case you haven't heard about this feature before; I'll explain my setup below, and you can read about the full thing here: (info "(org) Capture") My setup looks a bit like this: --8<---------------cut here---------------start------------->8--- (global-set-key "\C-cc" 'org-capture) (setq org-capture-templates '(("t" "Todo" entry (file "~/Documents/org/Inbox.org") "* TODO %? \n %a\n %K" ) ("s" "Spam" item (file+olp "~/Documents/org/home.org" "HomeIT" "Spam") "%a\n %K" :immediate-finish t))) --8<---------------cut here---------------end--------------->8--- With this setup, I can hit C-c c t when I'm reading any email, and it'll create an entry in my Inbox.org file which contains a hyperlink to the email I was reading when I hit C-c c. It'll pop up a window into which I can type a note (which will be included in the entry), and when I'm done I hit C-c C-c to go back to the email where I started. The magic that inserts the hyperlink to the email you just came from is the "%a". There's a second template in the code above, so that when I hit C-c c s, I'll get an entry under the Spam heading in my home.org file. I use this as a reminder to update my filters if something slips through to my inbox when it shouldn't have. The interesting thing about this template is the ":immediate-finish" clause. This means I don't get a pop-up window into which I might type a note. The entry is just inserted automatically, and I immediately go back to reading my email. I massively recommend using org-capture. I've described it here as a feature for capturing hyperlinks to emails (it integrates with gnus very nicely), but it can actually capture a link to anything that can be linked to. Web pages, emails, code files, particular lines of code files, IRC logs, git commits -- the lot. G