emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Bind C-u C-c C-x C-i to a key


From: Andreas Burtzlaff
Subject: [Orgmode] Re: Bind C-u C-c C-x C-i to a key
Date: Fri, 13 Aug 2010 01:37:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Markus Heller <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

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