From 9664b7b92ead38d37dc8e0402d55b871c35b7890 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 13 May 2018 16:17:29 +0200 Subject: [PATCH] Emacs: enable visual-line-mode in terminal --- emacs/emacs.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index 1943cec..6a40a7b 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -1204,8 +1204,11 @@ ad-do-it)) (ad-activate 'term-sentinel) - ;; disable nlinum in shell - :hook (term-mode-hook . (lambda () (nlinum-mode -1))) + (add-hook 'term-mode-hook (lambda () + ;; disable nlinum in shell + (nlinum-mode -1) + ;; enable visual line mode + (visual-line-mode 1))) :bind (("C-c s" . ansi-term) :map term-raw-map