summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-16 01:26:12 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-16 01:26:12 +0200
commit717903dee25f37fd4647949b5de86acf32b631f3 (patch)
treef1ec09990aa27a26a444b1eaa19e0e1d02426224 /.config/emacs
parentc5c84d0688a22e62b0bbfd1ace80f813ccc972d9 (diff)
emacs: Use ‘keymap-global-set’
The ‘global-set-key’ function is made obsolete by the new- and prefered function ‘keymap-global-set’.
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/config.org7
1 files changed, 4 insertions, 3 deletions
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