From: Giacomo M <jackjackk@gmail.com>
To: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: Key-binding to a command with prefix argument
Date: Tue, 24 Feb 2015 17:24:49 -0800 [thread overview]
Message-ID: <CA+GKSr7kAkbCG11sjEhbfAB4GrSwJJwFYUzmXknsoQ7BBt_kXg@mail.gmail.com> (raw)
In-Reply-To: <87egpehmmv.fsf@wmi.amu.edu.pl>
[-- 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 --]
prev parent reply other threads:[~2015-02-25 1:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+GKSr7kAkbCG11sjEhbfAB4GrSwJJwFYUzmXknsoQ7BBt_kXg@mail.gmail.com \
--to=jackjackk@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mbork@wmi.amu.edu.pl \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).