help-gnu-emacs
[Top][All Lists]
Advanced

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

How to bind a function with argument?


From: Rafael
Subject: How to bind a function with argument?
Date: Fri, 17 Dec 2010 18:35:04 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

I would like to bind a key to the function that results from

C-u M-x org-insert-link

>From 4.6 of http://www.nongnu.org/emacs-tiny-tools/keybindings/, I
thought that 

  (global-set-key [(super f)]
                   '(lambda () (interactive) (org-insert-link 4)))

would do the trick. But it doesn't, the effect is no different than just
doing 

  (global-set-key [(super f)] 'org-insert-link)

which is not what I want. Any help, please?


reply via email to

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