From 3da76fef7e1910faa8e3fd21f2e5697c735f80af Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 22 Sep 2017 12:51:03 +0200 Subject: Emacs: Only wrap lines in non-prog modes --- emacs/.emacs.d/main.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/main.el') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 2adc39da..7e784362 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -1936,6 +1936,11 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer." ;;;;; 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 @@ Pass ARG to `comint-delchar-or-maybe-eof'." (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 -- cgit 1.4.1