aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2024-10-17 10:41:16 -0700
committerRaul Benencia <id@rbenencia.name>2024-10-17 10:41:16 -0700
commitd424ad5d9a815f57c2432d33cc9b690566542f19 (patch)
treed457c66077c29cb79099d7ba6bdd14eedef6ad99 /.emacs.d
parenta5240f43437ff2e5267e2e94b9942a033ba58d15 (diff)
emacs: drop consult-vterm-buffer logic
With beframe, I no longer need this.
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/rul-init.d/vterm.el38
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))
nihil fit ex nihilo