From 717903dee25f37fd4647949b5de86acf32b631f3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Aug 2023 01:26:12 +0200 Subject: emacs: Use ‘keymap-global-set’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ‘global-set-key’ function is made obsolete by the new- and prefered function ‘keymap-global-set’. --- .config/emacs/config.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 90c8770..61d2ac5 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -245,10 +245,11 @@ here. #+BEGIN_SRC elisp - (global-set-key - (kbd "C-c e") + (keymap-global-set + "C-c e" (λ (interactive) - (find-file (expand-file-name "config.org" mango-config-directory)))) + (find-file + (expand-file-name "config.org" mango-config-directory)))) #+END_SRC -- cgit v1.2.3