spacemacs/contrib/shell/config.el
Tu Do 5308baf764 Enhance shell-pop and term integration
- Only set Eshell by default on Windows; in other OSes we use `ansi-term`,
NOT `term`. The reason is that `ansi-term` can use Emacs key bindings
such as C-x b, C-x 1... even editing commands such as M-u/M-l. `term`
cannot and we have to use the default `C-c b` variants i.e. C-c b to
switch buffer instead of "C-x b". `ansi-term` is currently the best
terminal emulator in Emacs.

- Allow ansi-term/term to close its shell-pop window when a user type
"exit".

- With shell-pop, we can allow ansi-term/term to track current directory
of current buffer. It is a useful feature and it also makes ansi-term
consistent with eshell/shell.

- Swap "term" and "ansi-term" key bindings, since the old "ast" was used
  for multi-term, which is a wrapper around ansi-term.
2015-05-22 00:49:58 -04:00

29 lines
882 B
EmacsLisp

;;; config.el --- shell configuration File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; Variables
(defvar shell-default-shell (if (eq window-system 'w32)
'eshell
'ansi-term)
"Default shell to use in Spacemacs. Possible values are `eshell', `shell',
`term' and `ansi-term'.")
(defvar shell-default-position 'bottom
"Position of the shell. Possible values are `top', `bottom' and `full'.")
(defvar shell-default-height 30
"Height in percents for the shell window.")
(defvar shell-default-term-shell "/bin/bash"
"Default shell to use in `term' and `ansi-term' shells.")