2021-04-11 23:53:27 +02:00
|
|
|
;;; -*- lexical-binding: t; -*-
|
2020-11-16 16:58:28 +01:00
|
|
|
|
|
|
|
(defun require-vterm ()
|
|
|
|
(add-to-list
|
|
|
|
'load-path
|
|
|
|
(concat
|
|
|
|
(s-trim
|
|
|
|
(shell-command-to-string
|
|
|
|
"nix-build --no-out-link ~/code/depot -A third_party.emacs.vterm"))
|
|
|
|
"/share/emacs/site-lisp/elpa/vterm-20200515.1412"))
|
|
|
|
(require 'vterm))
|
|
|
|
|
|
|
|
(defun +grfn/vterm-setup ()
|
|
|
|
(hide-mode-line-mode)
|
|
|
|
(setq-local evil-collection-vterm-send-escape-to-vterm-p t))
|
|
|
|
|
|
|
|
(add-hook 'vterm-mode-hook #'+grfn/vterm-setup)
|
|
|
|
|
|
|
|
(map! (:map vterm-mode-map
|
|
|
|
"<C-escape>" #'evil-normal-state))
|
|
|
|
|
|
|
|
(comment
|
|
|
|
(require-vterm)
|
|
|
|
)
|