Config: disable cns-mode in vterm properly.
This commit is contained in:
@@ -43,7 +43,12 @@
|
|||||||
(with-eval-after-load 'cns
|
(with-eval-after-load 'cns
|
||||||
(define-key cns-mode-map (kbd "C-<backspace>") nil))
|
(define-key cns-mode-map (kbd "C-<backspace>") nil))
|
||||||
;; vterm下关闭cns-mode
|
;; vterm下关闭cns-mode
|
||||||
(add-hook 'vterm-mode-hook (lambda () (setq-local global-cns-mode nil cns-mode nil)))
|
(add-hook 'vterm-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(run-at-time 0 nil
|
||||||
|
(lambda ()
|
||||||
|
(when (derived-mode-p 'vterm-mode)
|
||||||
|
(cns-mode -1))))))
|
||||||
|
|
||||||
(provide 'init-segmentation)
|
(provide 'init-segmentation)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user