all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument
@ 2018-10-21  4:18 Van L
  2018-10-21 12:26 ` Eli Zaretskii
  2018-10-21 20:33 ` Michael Heerdegen
  0 siblings, 2 replies; 6+ messages in thread
From: Van L @ 2018-10-21  4:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am unable to have the following work.

The elisp documentation has for me the problem of tl;dr and after experimenting with a few paragraphs and failing I want to ask how to get this done. I wonder sometimes if the documentation is obtuse by design to steal time.

┌────
│ (defun x-setface-height-i (number)
│   "Face height is set to NUMBER."
│   (interactive "nInsert number: ")
│   (set-face-attribute 'default (selected-frame) :height number))
│ 
│ ;; (info "(elisp) Interactive Call")
│ (global-set-key (kbd "C-c o") (funcall-interactively x-setface-height-i 202))
│ (global-set-key (kbd "C-c O") (funcall-interactively x-setface-height-i 256))
└────




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

end of thread, other threads:[~2018-10-22 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-21  4:18 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument Van L
2018-10-21 12:26 ` Eli Zaretskii
2018-10-21 20:33 ` Michael Heerdegen
2018-10-21 23:00   ` Van L
2018-10-22  6:25     ` Eli Zaretskii
2018-10-22 21:55       ` Van L

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.