diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2023-09-17 11:58:46 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2023-09-17 11:58:46 +0200 |
| commit | fcd186d1e684c2dca6497c89af77b27b2b036c11 (patch) | |
| tree | 0c8e301e0771853f9319f4dddda004094e58004b /docs/with-editor.texi | |
| parent | d5f3f06cb830311e60c58f656988ef37c05a99e0 (diff) | |
docs: Suggest keymap-global-set instead of define-key
Diffstat (limited to 'docs/with-editor.texi')
| -rw-r--r-- | docs/with-editor.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/with-editor.texi b/docs/with-editor.texi index 447c397..831b2aa 100644 --- a/docs/with-editor.texi +++ b/docs/with-editor.texi @@ -221,10 +221,10 @@ instance is exported as @code{$EDITOR}. To always use these variants add this to you init file: @lisp -(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) @end lisp Alternatively use the global @code{shell-command-with-editor-mode}. |
