Created
August 21, 2011 01:32
-
-
Save abicky/1159958 to your computer and use it in GitHub Desktop.
Setting of shell on Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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