about summary refs log tree commit diff
path: root/tools/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/emacs')
-rw-r--r--tools/emacs/config/init.el13
-rw-r--r--tools/emacs/default.nix1
2 files changed, 14 insertions, 0 deletions
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el
index 7d40813d83f0..06fe707921a4 100644
--- a/tools/emacs/config/init.el
+++ b/tools/emacs/config/init.el
@@ -73,6 +73,19 @@
 (use-package pg)
 (use-package restclient)
 
+(use-package vterm
+  :config (progn
+            (setq vterm-shell "/usr/bin/fish")
+            (setq vterm-exit-functions
+                  (lambda (&rest _) (kill-buffer (current-buffer))))
+            (setq vterm-set-title-functions
+                  (lambda (title)
+                    (rename-buffer
+                     (generate-new-buffer-name
+                      (format "vterm<%s>"
+                              (s-trim-left
+                               (s-chop-prefix "fish" title)))))))))
+
 ;;
 ;; Packages providing language-specific functionality
 ;;
diff --git a/tools/emacs/default.nix b/tools/emacs/default.nix
index 02ffb3660581..742556dd61b9 100644
--- a/tools/emacs/default.nix
+++ b/tools/emacs/default.nix
@@ -73,6 +73,7 @@ let
     transient
     use-package
     uuidgen
+    vterm
     web-mode
     websocket
     which-key