summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-04-12 12:53:15 +0200
committerJonas Bernoulli <jonas@bernoul.li>2023-04-12 12:53:15 +0200
commitdf74385b455cd7687232ad189acfea16cb44dd04 (patch)
tree92aaea1ecfcb8718b991ec5e45ea451d3a598170 /README.org
parent59867aebe16454be4d8c0c858f3b00b8a34f3f61 (diff)
readme: Untabify
Diffstat (limited to 'README.org')
-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