branch: externals/termint
commit 067b55d5ab2db094a09862caea9982f7cb2c0829
Author: Milan Glacier <[email protected]>
Commit: Milan Glacier <[email protected]>
refactor: reorder keymap generation.
To allow user-defined keymaps to override defaults.
---
termint.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/termint.el b/termint.el
index b0c50166eb..88f6137c39 100644
--- a/termint.el
+++ b/termint.el
@@ -649,6 +649,10 @@ suffix." repl-name)
(define-key map "r" #',send-region-func-name)
(define-key map "R" #',source-region-func-name)
(define-key map "e" #',send-string-func-name)
+ (define-key map "h" #',hide-window-func-name)
+ (when (require 'evil nil t)
+ (define-key map "r" #',send-region-operator-name)
+ (define-key map "R" #',source-region-operator-name))
(dolist (binding termint-mode-map-additional-keys)
(let ((key (car binding))
(suffix (cdr binding)))
@@ -656,10 +660,6 @@ suffix." repl-name)
,repl-name suffix)))
((fboundp command)))
(define-key map key command))))
- (define-key map "h" #',hide-window-func-name)
- (when (require 'evil nil t)
- (define-key map "r" #',send-region-operator-name)
- (define-key map "R" #',source-region-operator-name))
map)
,(format "Keymap for %s REPL commands." repl-name)))))