From 9dd618b8819737fc69b3f4ae74a9379417228150 Mon Sep 17 00:00:00 2001 From: opfez Date: Fri, 21 May 2021 11:11:17 +0200 Subject: [PATCH] add fez/insert-keybind, gitignore --- .gitignore | 1 + custom.el | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d70b5f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +backups/* \ No newline at end of file diff --git a/custom.el b/custom.el index 7eda172..bd0681a 100644 --- a/custom.el +++ b/custom.el @@ -44,6 +44,12 @@ (run-with-timer (or timeout 0.2) nil 'delete-overlay overlay))) (transient-mark-mode)) +(defun fez/insert-keybind () + (interactive) + (insert (concat "(kbd \"" + (key-description (read-key-sequence-vector "Key sequence: ")) + "\")"))) + ;; Eshell convinience commands. (defalias 'open 'find-file-other-window) (defalias 'clean 'eshell/clear-scrollback)