Emacs: enable visual-line-mode in terminal

This commit is contained in:
Marcel Kapfer 2018-05-13 16:17:29 +02:00
parent 684f0700bc
commit 9664b7b92e
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1204,8 +1204,11 @@
ad-do-it)) ad-do-it))
(ad-activate 'term-sentinel) (ad-activate 'term-sentinel)
(add-hook 'term-mode-hook (lambda ()
;; disable nlinum in shell ;; disable nlinum in shell
:hook (term-mode-hook . (lambda () (nlinum-mode -1))) (nlinum-mode -1)
;; enable visual line mode
(visual-line-mode 1)))
:bind (("C-c s" . ansi-term) :bind (("C-c s" . ansi-term)
:map term-raw-map :map term-raw-map