[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26.1 emacs-mac 7.2; map key to interactive lisp function (command) with
From: |
Van L |
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 |
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))
└────
- 26.1 emacs-mac 7.2; map key to interactive lisp function (command) with an argument,
Van L <=