diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-16T03·49+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-16T03·51+0000 |
commit | e99183427515af67ac97c64e22f286693ecbe060 (patch) | |
tree | 07effaeb53653dfa187aeb9682700d000c0f0ce0 | |
parent | d4f6c5a399e4202e57de572f7a7193f1537939d9 (diff) |
feat(emacs.d): Install and configure emacs-libvterm
This incredible package provides a fully functional, libvterm based terminal emulator inside of Emacs. Killer feature: It's possible to switch the buffer into a full Emacs text mode (read-only) for selections and such.
-rw-r--r-- | tools/emacs/config/init.el | 13 | ||||
-rw-r--r-- | tools/emacs/default.nix | 1 |
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 |