File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2420,7 +2420,22 @@ Para ubicar el archivo JAR en diferentes sistemas se inspecciona el script que s
24202420 (when (and (eq system-type "windows-nt")
24212421 (fboundp 'module-load))
24222422 ;; instala vterm
2423- (use-package vterm))
2423+ (use-package vterm
2424+ :init
2425+ (defun vterm-counsel-yank-pop-action (orig-fun &rest args)
2426+ (if (equal major-mode 'vterm-mode)
2427+ (let ((inhibit-read-only t)
2428+ (yank-undo-function (lambda (_start _end) (vterm-undo))))
2429+ (cl-letf (((symbol-function 'insert-for-yank)
2430+ (lambda (str) (vterm-send-string str t))))
2431+ (apply orig-fun args)))
2432+ (apply orig-fun args)))
2433+ :config
2434+ (advice-add 'counsel-yank-pop-action :around #'vterm-counsel-yank-pop-action)
2435+ :custom
2436+ (vterm-kill-buffer-on-exit t)))
2437+
2438+ (use-package multi-vterm)
24242439
24252440 (use-package flymake-shell
24262441 :hook (sh-set-shell . flymake-shell-load))
You can’t perform that action at this time.
0 commit comments