emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Burtzlaff <andy13@gmx.net>
To: Markus Heller <hellerm2@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bind C-u C-c C-x C-i to a key
Date: Fri, 13 Aug 2010 01:37:01 +0200	[thread overview]
Message-ID: <87ocd71jz6.fsf@gmx.net> (raw)
In-Reply-To: <0vhbizzap7.fsf@gmail.com> (Markus Heller's message of "Thu, 12 Aug 2010 16:13:24 -0700")

Markus Heller <hellerm2@gmail.com> writes:

> Hello all,
>
> I'd like to bind `C-u C-c C-x C-i' to the <f10> key in emacs 23.
>
> I guess the line in my .emacs has to look like
>
> (global-set-key (kbd "<f10>") 'org-XXX-XXX)
>
> but what exactly would org-XXX-XXX be?
>
> I apologize if this is a question with an obvious answer ...

The C-u says that the function that is bound to the rest of the key
combination is called with the first argument being `t'.

To get information about the function bound to a key combination use:
C-h k 
and then press the key combination (without the C-u prefix).
In this case it is org-clock-in.

This should bind org-clock-in with argument `t' to F12:

(defun ab-org-clock-in-select ()
  (interactive)
  (org-clock-in t))

(global-set-key (kbd "<f12>") 'ab-org-clock-in-select)

Maybe there's a more elegant way I don't know about..

HTH

Andreas

> Thanks and Cheers
> Markus
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-08-12 23:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12 23:13 Bind C-u C-c C-x C-i to a key Markus Heller
2010-08-12 23:37 ` Andreas Burtzlaff [this message]
2010-08-13  3:12   ` [OT] Passing universal argument to a function (was: Bind C-u C-c C-x C-i to a key) Memnon Anon
2010-08-13 16:49     ` Markus Heller
2010-08-14 23:41     ` Docstrings: Use of `C-u' (was: [OT] Passing universal argument to a function) Memnon Anon
2010-08-16 18:54       ` Docstrings: Use of `C-u' Bastien
2010-08-16 19:01       ` Bastien
2010-08-13  7:09   ` Re: Bind C-u C-c C-x C-i to a key Bastien
2010-08-13  7:12     ` Bastien

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=87ocd71jz6.fsf@gmx.net \
    --to=andy13@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=hellerm2@gmail.com \
    /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).