From 0bb08ae8388c5198f95a5f7e4ff52f780fca2d8a Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 13 Dec 2020 10:33:20 +0100 Subject: [PATCH] Emacs: Use turn-off-auto-fill instead of lambda. --- init.d/basics/buffers.el | 4 ++-- init.d/text/misc.el | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/init.d/basics/buffers.el b/init.d/basics/buffers.el index 8fef38a..a5ec957 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-12-08T14:07:31+0100> +;; Time-stamp: <2020-12-13T10:32:47+0100> ;;; Commentary: ;; * Setup scratch buffer. @@ -53,7 +53,7 @@ :hook ((prog-mode . my/truncate-lines) (conf-mode . my/truncate-lines) (emacs-startup . (lambda () (with-current-buffer "*scratch*" - (auto-fill-mode -1)))))) + (turn-off-auto-fill)))))) ;; Show and select buffers. Minimal interface for recovery situations. (use-package bs diff --git a/init.d/text/misc.el b/init.d/text/misc.el index cbc227c..1365260 100644 --- a/init.d/text/misc.el +++ b/init.d/text/misc.el @@ -1,6 +1,6 @@ ;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-12-08T13:58:30+0100> +;; Time-stamp: <2020-12-13T10:32:07+0100> ;;; Commentary: @@ -28,7 +28,7 @@ :custom-face (outline-1 ((t (:inherit outline-1 :height 1.0)))) :mode (("/cron\\.d/" . crontab-mode) ("^'/etc/crontab$" . crontab-mode)) - :hook (crontab-mode . (lambda () (auto-fill-mode -1)))) ; No word-wrapping. + :hook (crontab-mode . turn-off-auto-fill)) ; No word-wrapping. (use-package nginx-mode) @@ -203,7 +203,7 @@ ;; Syntax-highlighting mode for text/gemini. (use-package gemini-mode - :hook (gemini-mode . (lambda() (auto-fill-mode -1)))) + :hook (gemini-mode . turn-off-auto-fill)) ;; udev rule files. (use-package udev-mode)