Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README with respect to the new minor mode

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
  • Loading branch information...
commit a881502a7d402dea60d5a13c9d721f36b05deb8a 1 parent a8ed823
@DamienCassou DamienCassou authored
Showing with 18 additions and 9 deletions.
  1. +18 −9 README.md
View
27 README.md
@@ -24,21 +24,30 @@ add the following to your init file:
# Configuration
-You have to customize `shell-switcher-new-shell-function` if eshell
-is not your shell of choice.
+To activate shell-switcher, you have to set the variable
+`shell-switcher-mode` to t, either through `customize-variable` or
+with:
-To easily switch between shell buffers, you can bind keys as follows:
-
- (global-set-key (kbd "C-'") 'shell-switcher-switch-buffer)
- (global-set-key (kbd "C-x 4 '") 'shell-switcher-switch-buffer-other-window)
- (global-set-key (kbd "C-M-'") 'shell-switcher-new-shell)
+ (setq shell-switcher-mode t)
+You have to customize `shell-switcher-new-shell-function` if eshell is
+not your shell of choice.
# Usage
-Using the previously defined key bindings:
+The standard key bindings are:
-- `C-'` opens the first 2 buffers and switch between them
+- `C-'` opens the first 2 buffers (one after the other) and switch between them
- Repeating `'` continues switching after an initial `C-'`
- `C-M-'` forces the creation of a new shell
- `C-x 4 '` is similar to `C-'` but within another window
+
+You can change them by adapting and adding the following to your
+configuration file:
+
+ (define-key shell-switcher-mode-map (kbd "C-'")
+ 'shell-switcher-switch-buffer)
+ (define-key shell-switcher-mode-map (kbd "C-x 4 '")
+ 'shell-switcher-switch-buffer-other-window)
+ (define-key shell-switcher-mode-map (kbd "C-M-'")
+ 'shell-switcher-new-shell)
Please sign in to comment.
Something went wrong with that request. Please try again.