emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Keybinding doubt about ARG
@ 2022-06-19 15:50 Ypo
  2022-06-19 16:49 ` Bruno Barbier
       [not found] ` <62af533d.1c69fb81.96299.c52dSMTPIN_ADDED_MISSING@mx.google.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Ypo @ 2022-06-19 15:50 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

Is it possible to use ARG when defining keybindings?

For the command (scroll-up-command &optional ARG) I want to define this 
keybind:


(define-key global-map (kbd "M-n") 'scroll-up-command 1)


But:

eval-region: Wrong number of arguments: define-key, 4

[-- Attachment #2: Type: text/html, Size: 855 bytes --]

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

end of thread, other threads:[~2022-06-19 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-19 15:50 Keybinding doubt about ARG Ypo
2022-06-19 16:49 ` Bruno Barbier
2022-06-19 17:21   ` Juan Manuel Macías
     [not found] ` <62af533d.1c69fb81.96299.c52dSMTPIN_ADDED_MISSING@mx.google.com>
2022-06-19 16:56   ` Ypo
2022-06-19 17:24     ` Bruno Barbier

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