diff options
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |
