emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Key-binding to a command with prefix argument


From: Giacomo M
Subject: Re: [O] Key-binding to a command with prefix argument
Date: Tue, 24 Feb 2015 17:24:49 -0800

On Tue, Feb 24, 2015 at 4:15 PM, Marcin Borkowski <address@hidden> wrote:

On 2015-02-25, at 00:24, Giacomo M <address@hidden> wrote:

> Dear all,
> I started using more frequently "C-u C-c C-x <tab>",
> which offers a list of recently clocked tasks to clock into. I already
> assigned "<f11>" to org-clock-in, but how can I assign (let say) "C-<f11>"
> to org-clock-in with a prefix argument?

What about

(defun org-clock-in-recent ()
  "Clock in a recently clocked task."
  (interactive)
  (org-clock-in '(4)))

(global-set-key (kbd "C-<f11>") #'org-clock-in-recent)

?

Thanks Marcin, indeed it worked as expected.
 

BTW, I seldom use C-c C-x <tab> - I prefer C-c C-x C-i.

Do  "C-c C-x <tab>" and "C-c C-x C-i" call the same command? My system doesn't seem to distinguish the two. How could I distinguish them and why should I prefer one instead of the other?
 

Also, you might want to read this: http://mbork.pl/2013-05-25_Clocking_in_from_anywhere_%28en%29

Thanks, interesting. Apparently org-clock-in-recent seems to work already from anywhere.



Giacomo




Hth,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]