Install VTerm for Emacs
This commit is contained in:
@@ -2143,6 +2143,28 @@ thankfully.
|
|||||||
:after eshell
|
:after eshell
|
||||||
:hook (eshell-mode-hook . eshell-syntax-highlighting-mode))
|
:hook (eshell-mode-hook . eshell-syntax-highlighting-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** VTerm
|
||||||
|
Sometimes Eshell doesn't cut it; it can't run certain TUI applications
|
||||||
|
easily, and if they don't have Emacs integration then you're out of
|
||||||
|
luck. Emacs comes by default with some terminal applications that can
|
||||||
|
run a system wide shell like SH or ZSH (~shell~ and ~term~ for
|
||||||
|
example), but they're not exactly great. ~vterm~ is an external
|
||||||
|
package using a shared library for terminal emulation, and is much
|
||||||
|
better than the default Emacs stuff.
|
||||||
|
|
||||||
|
Since my ZSH configuration enables vim emulation, using ~evil~ on top
|
||||||
|
of it would lead to some weird states. Instead, use the Emacs state
|
||||||
|
so vim emulation is completely controlled by the shell.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package vterm
|
||||||
|
:straight t
|
||||||
|
:general
|
||||||
|
(shell-leader
|
||||||
|
"v" #'vterm)
|
||||||
|
:init
|
||||||
|
(with-eval-after-load "evil"
|
||||||
|
(evil-set-initial-state 'vterm-mode 'emacs)))
|
||||||
|
#+end_src
|
||||||
** WAIT Elfeed
|
** WAIT Elfeed
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:emacs-lisp: :tangle no :results none
|
:header-args:emacs-lisp: :tangle no :results none
|
||||||
|
|||||||
Reference in New Issue
Block a user