Emacs: Only wrap lines in non-prog modes
Alan Pearce alan@alanpearce.eu
Fri, 22 Sep 2017 12:51:03 +0200
1 files changed, 6 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -1936,6 +1936,11 @@ ;; #+END_SRC ;;;;; Programming + +(define-hook-helper prog-mode () + :name long-lines + (setq-local truncate-lines t)) + ;;;;;; flycheck ;; On-the-fly error checking in programming modes? Yes please. @@ -2637,7 +2642,7 @@ (put 'upcase-region 'disabled nil) (put 'downcase-region 'disabled nil) (setq sentence-end-double-space t line-move-visual nil) -(setq-default truncate-lines t) +(setq-default truncate-lines nil) ;; #+END_SRC ;;;;;; align