From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Copy link at point Date: Thu, 23 Jun 2011 17:42:17 +0200 Message-ID: <4E035ED9.7080005@christianmoe.com> References: <4E0307D5.8080105@christianmoe.com> <4E031D7C.4080104@christianmoe.com> <87tybgzs8v.fsf@mean.albasani.net> <8739j04sfy.fsf@pinto.chemeng.ucl.ac.uk> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZm1I-0001vo-TX for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:40:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZm1H-00010L-Kt for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:40:40 -0400 Received: from mars.hitrost.net ([91.185.211.18]:17348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZm1H-000109-60 for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:40:39 -0400 In-Reply-To: <8739j04sfy.fsf@pinto.chemeng.ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Memnon Anon , emacs-orgmode@gnu.org Cool! Thanks. Yours, Christian On 6/23/11 2:56 PM, Eric S Fraga wrote: > Memnon Anon writes: (...) >> >> C-c C-l C-a C-k C-g >> >> Memnon > > And if you do this, saving it as a kmacro, you can generate code that > does this: > > #+begin_src emacs-lisp > (fset 'getlink > (lambda (&optional arg) > "Keyboard macro." > (interactive "p") > (kmacro-exec-ring-item (quote ("\C-c\C-l\C-a\C-k\C-g" 0 "%d")) arg))) > #+end_src > > You can then bind /getlink/ to a key or execute it directly with > M-x getlink RET > >