summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.org b/README.org
index c3dfca1..6e61095 100644
--- a/README.org
+++ b/README.org
@@ -16,10 +16,10 @@ commands prompt for an alternative environment variable such as
file:
#+begin_src emacs-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_src
Alternatively use the global ~shell-command-with-editor-mode~,
@@ -45,7 +45,7 @@ equivalent:
#+begin_src emacs-lisp
(add-hook 'shell-mode-hook
- (apply-partially 'with-editor-export-editor "GIT_EDITOR"))
+ (apply-partially 'with-editor-export-editor "GIT_EDITOR"))
(add-hook 'shell-mode-hook 'with-editor-export-git-editor)
#+end_src