about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/vterm.el
blob: 02d6223a4cc5c90f9cdba9c8775cd8cb5663efe4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; ../code/depot/users/glittershark/emacs.d/vterm.el -*- lexical-binding: t; -*-

(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)
 )