* Key-binding to a command with prefix argument
@ 2015-02-24 23:24 Giacomo M
2015-02-25 0:15 ` Marcin Borkowski
0 siblings, 1 reply; 3+ messages in thread
From: Giacomo M @ 2015-02-24 23:24 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
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?
Thanks,
Giacomo
[-- Attachment #2: Type: text/html, Size: 418 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Key-binding to a command with prefix argument
2015-02-24 23:24 Key-binding to a command with prefix argument Giacomo M
@ 2015-02-25 0:15 ` Marcin Borkowski
2015-02-25 1:24 ` Giacomo M
0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2015-02-25 0:15 UTC (permalink / raw)
To: emacs-orgmode
On 2015-02-25, at 00:24, Giacomo M <jackjackk@gmail.com> 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)
?
BTW, I seldom use C-c C-x <tab> - I prefer C-c C-x C-i.
Also, you might want to read this: http://mbork.pl/2013-05-25_Clocking_in_from_anywhere_%28en%29
> Thanks,
>
> Giacomo
Hth,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Key-binding to a command with prefix argument
2015-02-25 0:15 ` Marcin Borkowski
@ 2015-02-25 1:24 ` Giacomo M
0 siblings, 0 replies; 3+ messages in thread
From: Giacomo M @ 2015-02-25 1:24 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
On Tue, Feb 24, 2015 at 4:15 PM, Marcin Borkowski <mbork@wmi.amu.edu.pl>
wrote:
>
> On 2015-02-25, at 00:24, Giacomo M <jackjackk@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 2719 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-25 1:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 23:24 Key-binding to a command with prefix argument Giacomo M
2015-02-25 0:15 ` Marcin Borkowski
2015-02-25 1:24 ` Giacomo M
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.