An emacs package to easily switch between shell buffers (like with alt+tab)
Emacs Lisp
Switch branches/tags
Nothing to show
Pull request Compare This branch is 57 commits behind DamienCassou:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
AUTHORS
COPYING
ChangeLog
Makefile
README.md
requirements.txt
rswitcher-test.el
rswitcher.el
shell-switcher.el

README.md

Emacs shell-switcher

shell-switcher provides fast switching between shell buffers.

See the screencast.

Installation

With Emacs' packaging system

Make sure you have marmalade repository ready to use and type M-x package-install shell-switcher.

Manually

Download shell-switcher from github and add it to your load-path. Then, add the following to your init file:

(require 'shell-switcher)

Configuration

To activate shell-switcher, you have to set the variable shell-switcher-mode to t, either through customize-variable or with:

(setq shell-switcher-mode t)

You have to customize shell-switcher-new-shell-function if eshell is not your shell of choice.

Usage

The standard key bindings are:

  • 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)