From: Van L <van@scratch.space>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument
Date: Sun, 21 Oct 2018 15:18:39 +1100 [thread overview]
Message-ID: <50DFDFDA-C01D-49AA-97FB-30DF4DE9BB46@scratch.space> (raw)
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))
└────
next reply other threads:[~2018-10-21 4:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-21 4:18 Van L [this message]
2018-10-21 12:26 ` 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50DFDFDA-C01D-49AA-97FB-30DF4DE9BB46@scratch.space \
--to=van@scratch.space \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.