Skip to content

Instantly share code, notes, and snippets.

@abicky
Created August 21, 2011 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abicky/1159958 to your computer and use it in GitHub Desktop.
Save abicky/1159958 to your computer and use it in GitHub Desktop.
Setting of shell on Emacs
(when (require 'multi-shell nil t)
(setq multi-shell-command "/bin/bash")
(setq multi-shell-buffer-name "bash")
(define-key shell-mode-map (kbd "C-c SPC") 'multi-shell-next)
(define-key shell-mode-map (kbd "C-c C-SPC") 'multi-shell-prev))
(defun bash()
(interactive)
(when (one-window-p)
(split-window-horizontally)
(other-window 1))
(if (functionp 'multi-shell-new)
(multi-shell-new)
(shell)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment