From f3f272605c59641bbda3e76f3083eeaa3d671905 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 19 Nov 2020 05:26:12 +0100 Subject: [PATCH] Emacs: No fill column for scratch buffer. --- init.d/basics/buffers.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.d/basics/buffers.el b/init.d/basics/buffers.el index 2786594..1332a02 100644 --- a/init.d/basics/buffers.el +++ b/init.d/basics/buffers.el @@ -1,6 +1,6 @@ ;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-11-18T18:38:05+0100> +;; Time-stamp: <2020-11-19T05:25:43+0100> ;;; Commentary: ;; * Setup scratch buffer. @@ -50,7 +50,9 @@ :bind (("M-" . previous-buffer) ("M-" . next-buffer)) :hook ((prog-mode . my/truncate-lines) - (conf-mode . my/truncate-lines))) + (conf-mode . my/truncate-lines) + (emacs-startup . (lambda () (with-current-buffer "*scratch*" + (setq-local fill-column -1)))))) ;; Show and select buffers. Minimal interface for recovery situations. (use-package bs