all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to bind a function with argument?
@ 2010-12-18  0:35 Rafael
  2010-12-18  1:31 ` LanX
  2010-12-18  1:49 ` Pascal J. Bourguignon
  0 siblings, 2 replies; 7+ messages in thread
From: Rafael @ 2010-12-18  0:35 UTC (permalink / raw)
  To: help-gnu-emacs


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?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-18  2:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18  0:35 How to bind a function with argument? Rafael
2010-12-18  1:31 ` LanX
2010-12-18  1:43   ` Rafael
2010-12-18  1:52   ` LanX
2010-12-18  1:49 ` Pascal J. Bourguignon
2010-12-18  2:00   ` LanX
2010-12-18  2:03   ` Rafael

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.