2015-05-21 02:39:14 +00:00
|
|
|
;;; config.el --- shell configuration File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-05-21 02:39:14 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-10-12 14:00:57 +00:00
|
|
|
;; Emacs built-in variables
|
|
|
|
|
|
|
|
;; move point to the end of buffer on new output
|
|
|
|
(setq comint-move-point-for-output t)
|
|
|
|
|
2019-08-04 22:20:19 +00:00
|
|
|
;; allow moving around the buffer in emacs >= 26.1 in evil's normal mode
|
|
|
|
(setq term-char-mode-point-at-process-mark nil)
|
|
|
|
|
2015-05-21 02:39:14 +00:00
|
|
|
;; Variables
|
|
|
|
|
2015-05-21 10:31:48 +00:00
|
|
|
(defvar shell-default-shell (if (eq window-system 'w32)
|
|
|
|
'eshell
|
|
|
|
'ansi-term)
|
2015-05-21 02:39:14 +00:00
|
|
|
"Default shell to use in Spacemacs. Possible values are `eshell', `shell',
|
2018-09-08 00:15:08 +00:00
|
|
|
`term', `ansi-term' and `multi-term'.")
|
2015-05-21 02:39:14 +00:00
|
|
|
|
|
|
|
(defvar shell-default-position 'bottom
|
2016-03-17 01:27:25 +00:00
|
|
|
"Position of the shell. Possible values are `top', `bottom', `full',
|
|
|
|
`left' and `right'.")
|
2015-05-21 02:39:14 +00:00
|
|
|
|
|
|
|
(defvar shell-default-height 30
|
|
|
|
"Height in percents for the shell window.")
|
|
|
|
|
2018-01-22 19:55:21 +00:00
|
|
|
(defvar shell-default-width 30
|
|
|
|
"Width in percents for the shell window.")
|
|
|
|
|
2015-10-13 10:10:28 +00:00
|
|
|
(defvar shell-default-term-shell shell-file-name
|
2015-05-21 02:39:14 +00:00
|
|
|
"Default shell to use in `term' and `ansi-term' shells.")
|
2015-07-08 04:57:15 +00:00
|
|
|
|
|
|
|
(defvar shell-enable-smart-eshell nil
|
|
|
|
"If non-nil then `em-smart' is enabled. `em-smart' allows to quickly review
|
|
|
|
commands, modify old commands or enter a new one.")
|
2015-07-10 23:58:13 +00:00
|
|
|
|
2015-07-26 06:41:26 +00:00
|
|
|
(defvar shell-protect-eshell-prompt t
|
2015-07-10 23:58:13 +00:00
|
|
|
"If non-nil then eshell's prompt is protected. This means that
|
2015-07-26 06:41:26 +00:00
|
|
|
movement to the prompt is inhibited like for `comint-mode'
|
|
|
|
prompts and the prompt is made read-only")
|
2016-04-28 14:22:01 +00:00
|
|
|
|
2016-04-29 22:20:59 +00:00
|
|
|
(defvar shell-default-full-span t
|
|
|
|
"If non-nil, the `shell' buffer spans full width of a frame.")
|
2019-05-19 23:09:14 +00:00
|
|
|
|
|
|
|
(defvar close-window-with-terminal nil
|
|
|
|
"If non-nil, the window is closed when the terminal is stopped.
|
|
|
|
This is only applied to `term' and `ansi-term' modes.")
|