commit 4209461ae833b5156035e5a0aa3c938fd9869552 parent 358e12e50af58800e974451b53e58eaf33926b5e Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 2 Aug 2022 20:33:15 +0200 emacs: binding to insert macro as lisp Diffstat:
M | emacs/config.org | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -2081,6 +2081,14 @@ Taken from here: https://www.emacswiki.org/emacs/UnfillParagraph (za/global-set-key (kbd "M-Q") #'za/unfill-paragraph) #+end_src +** Insert macro as Lisp +From here: https://www.masteringemacs.org/article/keyboard-macros-are-misunderstood + +#+begin_src emacs-lisp + (require 'kmacro) + (defalias 'kmacro-insert-macro 'insert-kbd-macro) + (define-key kmacro-keymap (kbd "I") #'kmacro-insert-macro) +#+end_src * Markdown Markdown mode settings.