Move and update eshell and vterm config
This commit is contained in:
parent
974d7987a7
commit
bd602d65fb
|
@ -40,6 +40,7 @@
|
||||||
(require 'init-paredit-x)
|
(require 'init-paredit-x)
|
||||||
(require 'init-lsp)
|
(require 'init-lsp)
|
||||||
(require 'init-git)
|
(require 'init-git)
|
||||||
|
(require 'init-shell)
|
||||||
(require 'init-org)
|
(require 'init-org)
|
||||||
;;(require 'init-latex)
|
;;(require 'init-latex)
|
||||||
(require 'init-xml)
|
(require 'init-xml)
|
||||||
|
|
|
@ -24,23 +24,6 @@
|
||||||
:commands minibuffer-edit
|
:commands minibuffer-edit
|
||||||
:init (miniedit-install))
|
:init (miniedit-install))
|
||||||
|
|
||||||
(use-package multi-vterm
|
|
||||||
:bind (("C-c t" . multi-vterm-next)
|
|
||||||
("C-c C-M-t" . multi-vterm)
|
|
||||||
(:map vterm-mode-map
|
|
||||||
("M-[" . multi-vterm-prev)
|
|
||||||
("M-]" . multi-vterm-next))))
|
|
||||||
|
|
||||||
(use-package eshell
|
|
||||||
:ensure nil
|
|
||||||
:bind ("C-x m " . eshell)
|
|
||||||
:custom
|
|
||||||
(eshell-directory-name (expand-file-name "eshell" save-dir)))
|
|
||||||
|
|
||||||
(use-package eshell-z
|
|
||||||
:defer t
|
|
||||||
:hook (eshell-mode . (lambda () (require 'eshell-z))))
|
|
||||||
|
|
||||||
(use-package json-mode)
|
(use-package json-mode)
|
||||||
(use-package csv-mode)
|
(use-package csv-mode)
|
||||||
(use-package yaml-mode
|
(use-package yaml-mode
|
||||||
|
|
44
.emacs.d/lisp/init-shell.el
Normal file
44
.emacs.d/lisp/init-shell.el
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
;;; init-shell.el --- eshell/vterm Configuration File -*- lexical-binding: t -*-
|
||||||
|
;;; Commentary:
|
||||||
|
;;; Code:
|
||||||
|
|
||||||
|
(use-package eshell
|
||||||
|
:ensure nil
|
||||||
|
:bind ("C-x m " . eshell)
|
||||||
|
:hook
|
||||||
|
(eshell-pre-command . eshell-save-some-history)
|
||||||
|
:custom
|
||||||
|
(eshell-directory-name (expand-file-name "eshell" save-dir))
|
||||||
|
:config
|
||||||
|
(setenv "PAGER" "cat"))
|
||||||
|
|
||||||
|
(use-package eshell-z
|
||||||
|
:defer t
|
||||||
|
:hook (eshell-mode . (lambda () (require 'eshell-z))))
|
||||||
|
|
||||||
|
(use-package esh-autosuggest
|
||||||
|
:hook (eshell-mode . esh-autosuggest-mode))
|
||||||
|
|
||||||
|
(use-package eshell-syntax-highlighting
|
||||||
|
:after esh-mode
|
||||||
|
:config
|
||||||
|
(eshell-syntax-highlighting-global-mode +1))
|
||||||
|
|
||||||
|
(use-package xterm-color
|
||||||
|
:hook
|
||||||
|
(eshell-before-prompt . (lambda ()
|
||||||
|
(setq xterm-color-preserve-properties t)))
|
||||||
|
:config
|
||||||
|
(push 'xterm-color-filter eshell-preoutput-filter-functions)
|
||||||
|
(delq 'eshell-handle-ansi-color eshell-output-filter-functions)
|
||||||
|
(setenv "TERM" "xterm-256color"))
|
||||||
|
|
||||||
|
(use-package multi-vterm
|
||||||
|
:bind (("C-c t" . multi-vterm-next)
|
||||||
|
("C-c C-M-t" . multi-vterm)
|
||||||
|
(:map vterm-mode-map
|
||||||
|
("M-[" . multi-vterm-prev)
|
||||||
|
("M-]" . multi-vterm-next))))
|
||||||
|
|
||||||
|
(provide 'init-shell)
|
||||||
|
;;; init-shell.el ends here
|
Loading…
Reference in New Issue
Block a user