Emacs: Use turn-off-auto-fill instead of lambda.

This commit is contained in:
tastytea 2020-12-13 10:33:20 +01:00
parent fc5405f4f7
commit 0bb08ae838
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)