Emacs: Use turn-off-auto-fill instead of lambda.
This commit is contained in:
parent
fc5405f4f7
commit
0bb08ae838
|
@ -1,6 +1,6 @@
|
||||||
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
;; * Setup scratch buffer.
|
;; * Setup scratch buffer.
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
:hook ((prog-mode . my/truncate-lines)
|
:hook ((prog-mode . my/truncate-lines)
|
||||||
(conf-mode . my/truncate-lines)
|
(conf-mode . my/truncate-lines)
|
||||||
(emacs-startup . (lambda () (with-current-buffer "*scratch*"
|
(emacs-startup . (lambda () (with-current-buffer "*scratch*"
|
||||||
(auto-fill-mode -1))))))
|
(turn-off-auto-fill))))))
|
||||||
|
|
||||||
;; Show and select buffers. Minimal interface for recovery situations.
|
;; Show and select buffers. Minimal interface for recovery situations.
|
||||||
(use-package bs
|
(use-package bs
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
:custom-face (outline-1 ((t (:inherit outline-1 :height 1.0))))
|
:custom-face (outline-1 ((t (:inherit outline-1 :height 1.0))))
|
||||||
:mode (("/cron\\.d/" . crontab-mode)
|
:mode (("/cron\\.d/" . crontab-mode)
|
||||||
("^'/etc/crontab$" . 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)
|
(use-package nginx-mode)
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
|
|
||||||
;; Syntax-highlighting mode for text/gemini.
|
;; Syntax-highlighting mode for text/gemini.
|
||||||
(use-package gemini-mode
|
(use-package gemini-mode
|
||||||
:hook (gemini-mode . (lambda() (auto-fill-mode -1))))
|
:hook (gemini-mode . turn-off-auto-fill))
|
||||||
|
|
||||||
;; udev rule files.
|
;; udev rule files.
|
||||||
(use-package udev-mode)
|
(use-package udev-mode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user