all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: Key-binding to a command with prefix argument
Date: Wed, 25 Feb 2015 01:15:36 +0100	[thread overview]
Message-ID: <87egpehmmv.fsf@wmi.amu.edu.pl> (raw)
In-Reply-To: <CA+GKSr5QFSghpNQNqNx9pS21qzBax3_rdGv6gNkOnAW0+jEgNQ@mail.gmail.com>


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

  reply	other threads:[~2015-02-25  0:16 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 [this message]
2015-02-25  1:24   ` Giacomo M

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87egpehmmv.fsf@wmi.amu.edu.pl \
    --to=mbork@wmi.amu.edu.pl \
    --cc=emacs-orgmode@gnu.org \
    /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 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.