Apply conventions to multi-term keybinds

This commit is contained in:
Emil Petersen 2019-04-05 18:17:13 -04:00 committed by duianto
parent 66eebcf032
commit c68fde7beb
3 changed files with 17 additions and 8 deletions

View File

@ -2008,6 +2008,10 @@ Other:
- Wrap 'shell' command to start in current buffer (thanks to Valts Liepiņš)
- Fixed shell popup broken on macOS (thanks to Daniel Rivas Perez)
- Fixed broken leader key binding for inferior shell (thanks to Valts Liepiņš)
- Added =term-mode= bindings (Thanks to Emil Petersen):
- ~SPC m C~ switch multi-term to char mode
- ~SPC m l~ switch multi-term to line mode
- ~SPC m N~ go to previous multi-term
**** Shell Scripts
- Added new company-shell environment variable backend (thanks to
Alexander-Miller)

View File

@ -221,12 +221,14 @@ in the current buffer instead of a popup.
** Multi-term
| Key binding | Description |
|-------------+------------------------------|
| ~SPC m c~ | create a new multi-term |
| ~SPC m n~ | go to next multi-term |
| ~SPC m p~ | go to previous multi-term |
| ~SPC p $ t~ | run multi-term shell in root |
| Key binding | Description |
|------------------------+--------------------------------|
| ~SPC m c~ | create a new multi-term |
| ~SPC m C~ | switch multi-term char mode |
| ~SPC m l~ | switch multi-term to line mode |
| ~SPC m n~ | go to next multi-term |
| ~SPC m N~ or ~SPC m p~ | go to previous multi-term |
| ~SPC p $ t~ | run multi-term shell in root |
** Eshell

View File

@ -165,8 +165,11 @@
;; multi-term commands to create terminals and move through them.
(spacemacs/set-leader-keys-for-major-mode 'term-mode
"c" 'multi-term
"p" 'multi-term-prev
"n" 'multi-term-next))))
"C" 'term-char-mode
"l" 'term-line-mode
"n" 'multi-term-next
"N" 'multi-term-prev
"p" 'multi-term-prev))))
(defun shell/pre-init-org ()
(spacemacs|use-package-add-hook org