diff options
-rw-r--r-- | .emacs.d/rul-init.d/vterm.el | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/.emacs.d/rul-init.d/vterm.el b/.emacs.d/rul-init.d/vterm.el index b3bed95..5116bf0 100644 --- a/.emacs.d/rul-init.d/vterm.el +++ b/.emacs.d/rul-init.d/vterm.el @@ -1,35 +1,5 @@ (use-package multi-vterm -:ensure t -:after (consult) -:config - -(setq vterm-source - `(:name "VTerm Buffer" - :category buffer - :narrow ?t - :face 'consult-buffer - :action ,#'consult--buffer-action - :items - (lambda () - (mapcar #'buffer-name - (seq-filter - (lambda (x) - (eq (buffer-local-value 'major-mode x) 'vterm-mode)) - (buffer-list)))))) - -(setq consult-vterm-buffer-sources - (list - `(:hidden nil :narrow ?t ,@vterm-source))) - -(setq vterm-max-scrollback 100000) - -(defun consult-vterm-buffer () - "Switch to a vterm buffer" - (interactive) - (consult-buffer consult-vterm-buffer-sources)) - -(bind-key "C-x b" 'consult-vterm-buffer vterm-mode-map) - -(add-to-list 'consult-buffer-sources 'vterm-source 'append) -(add-hook 'vterm-mode-hook 'goto-address-mode) -) + :ensure t + :config + (setq vterm-max-scrollback 100000) + (add-hook 'vterm-mode-hook 'goto-address-mode)) |