Switch to verm
This commit is contained in:
@@ -2998,6 +2998,8 @@ Actually, return the method name."
|
||||
("C-w" . evil-window-map))
|
||||
:hook ((vterm-mode . my/-setup-vterm-mode)
|
||||
(vterm-copy-mode . my/-setup-vterm-copy-mode))
|
||||
:custom
|
||||
(vterm-kill-buffer-on-exit nil)
|
||||
:config
|
||||
;; disable `evil--sw-refresh-cursor' in vterm buffers
|
||||
(defun my/-disable-evil--sw-refresh-cursor-in-vterm (oldfun &rest r)
|
||||
@@ -3006,6 +3008,10 @@ Actually, return the method name."
|
||||
(advice-add 'evil--sw-refresh-cursor :around
|
||||
#'my/-disable-evil--sw-refresh-cursor-in-vterm)
|
||||
|
||||
(defun my/-vterm-copy-mode-on-exit (&rest _r)
|
||||
(vterm-copy-mode))
|
||||
(add-hook 'vterm-exit-functions #'my/-vterm-copy-mode-on-exit)
|
||||
|
||||
(defvar-local my/-vterm-pre-copy-mode-cursor nil
|
||||
"The cursor to restore after exiting `vterm-copy-mode'.")
|
||||
(defun my/-setup-vterm-copy-mode ()
|
||||
@@ -3258,7 +3264,8 @@ If no name is given, list all bookmarks instead."
|
||||
|
||||
(defvar my/eshell-or-vterm-hook nil
|
||||
"Hook to determine weather `my/open-shell-dwin' uses `eshell' or `vterm'.")
|
||||
(defvar my/always-use-vterm nil
|
||||
;; TODO until eat is fixed
|
||||
(defvar my/always-use-vterm t
|
||||
"Make `my/open-shell-dwim' always use vterm.")
|
||||
(put 'my/always-use-vterm 'safe-local-variable 'booleanp)
|
||||
(defun my/open-shell-dwim (&optional arg)
|
||||
|
||||
Reference in New Issue
Block a user