80 lines
2.4 KiB
EmacsLisp
80 lines
2.4 KiB
EmacsLisp
;;; init-shell.el --- -*- lexical-binding: t -*-
|
|
;;
|
|
;; Filename: init-shell.el
|
|
;; Description: Initialize Shell
|
|
;; Author: Mingde (Matthew) Zeng
|
|
;; Copyright (C) 2019 Mingde (Matthew) Zeng
|
|
;; Created: Tue Mar 19 09:20:19 2019 (-0400)
|
|
;; Version: 2.0.0
|
|
;; Last-Updated: Tue Oct 8 00:20:32 2019 (-0400)
|
|
;; By: Mingde (Matthew) Zeng
|
|
;; URL: https://github.com/MatthewZMD/.emacs.d
|
|
;; Keywords: M-EMACS .emacs.d shell shell-here
|
|
;; Compatibility: emacs-version >= 26.1
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Commentary:
|
|
;;
|
|
;; This initializes shell-here, term-keys, multi-term, aweshell
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;; This program is free software: you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation, either version 3 of the License, or (at
|
|
;; your option) any later version.
|
|
;;
|
|
;; This program is distributed in the hope that it will be useful, but
|
|
;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
;; General Public License for more details.
|
|
;;
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Code:
|
|
|
|
(eval-when-compile
|
|
(require 'init-const))
|
|
|
|
;; AweshellPac
|
|
(use-package aweshell
|
|
:load-path (lambda () (expand-file-name "site-elisp/aweshell" user-emacs-directory))
|
|
:commands (aweshell-new aweshell-dedicated-open)
|
|
:bind
|
|
(("M-#" . aweshell-dedicated-open)
|
|
(:map eshell-mode-map ("M-#" . aweshell-dedicated-close))))
|
|
;; -AweshellPac
|
|
|
|
;; ShellHerePac
|
|
(use-package shell-here
|
|
:bind ("M-~" . shell-here)
|
|
:config
|
|
(when *sys/linux*
|
|
(setq explicit-shell-file-name "/bin/bash")))
|
|
;; -ShellHerePac
|
|
|
|
;; MultiTermPac
|
|
(use-package multi-term
|
|
:load-path (lambda () (expand-file-name "site-elisp/multi-term" user-emacs-directory))
|
|
:commands (multi-term)
|
|
:bind
|
|
(("M-$" . multi-term)
|
|
(:map dired-mode-map ("M-$" . multi-term)))
|
|
:custom
|
|
(multi-term-program (executable-find "bash")))
|
|
;; -MultiTermPac
|
|
|
|
;; TermKeysPac
|
|
(use-package term-keys
|
|
:if (not *sys/gui*)
|
|
:config (term-keys-mode t))
|
|
;; -TermKeysPac
|
|
|
|
(provide 'init-shell)
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;; init-shell.el ends here
|