unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* global-set-key with function taking arguments
@ 2020-11-01  9:53 jai-bholeki via Users list for the GNU Emacs text editor
  2020-11-01 10:57 ` William Xu
  0 siblings, 1 reply; 13+ messages in thread
From: jai-bholeki via Users list for the GNU Emacs text editor @ 2020-11-01  9:53 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

This is the way I set a keybinding
(global-set-key (kbd "C-H-<down>") 'transpose-paragraphs)

To set a keybinding with a function taking parameters, I use
(global-set-key (kbd "C-H-<up>")
( lambda () (interactive) (transpose-paragraphs -1) )
)

However, may one write
(global-set-key (kbd "C-H-<up>") '(transpose-paragraphs -1) )

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

end of thread, other threads:[~2020-11-01 23:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-01  9:53 global-set-key with function taking arguments jai-bholeki via Users list for the GNU Emacs text editor
2020-11-01 10:57 ` William Xu
2020-11-01 11:33   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-11-01 11:47     ` Christopher Dimech
2020-11-01 12:21       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-11-01 12:28         ` Christopher Dimech
2020-11-01 12:57           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-11-01 13:19             ` Christopher Dimech
2020-11-01 13:37               ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-11-01 14:08                 ` Christopher Dimech
2020-11-01 14:56                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-11-01 23:38                     ` Corwin Brust
2020-11-01 13:05     ` William Xu

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).