summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-09-17 11:58:46 +0200
committerJonas Bernoulli <jonas@bernoul.li>2023-09-17 11:58:46 +0200
commitfcd186d1e684c2dca6497c89af77b27b2b036c11 (patch)
tree0c8e301e0771853f9319f4dddda004094e58004b /lisp
parentd5f3f06cb830311e60c58f656988ef37c05a99e0 (diff)
docs: Suggest keymap-global-set instead of define-key
Diffstat (limited to 'lisp')
-rw-r--r--lisp/with-editor.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index ab448d0..19910bb 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -41,10 +41,10 @@
;; `$GIT_EDITOR'. To always use these variants add this to your init
;; file:
;;
-;; (define-key (current-global-map)
-;; [remap async-shell-command] #'with-editor-async-shell-command)
-;; (define-key (current-global-map)
-;; [remap shell-command] #'with-editor-shell-command)
+;; (keymap-global-set "<remap> <async-shell-command>"
+;; #'with-editor-async-shell-command)
+;; (keymap-global-set "<remap> <shell-command>"
+;; #'with-editor-shell-command)
;; Alternatively use the global `shell-command-with-editor-mode',
;; which always sets `$EDITOR' for all Emacs commands which ultimately