Emacs: Bugfix: enable whitespace in Emacs >= 27.

This commit is contained in:
tastytea 2020-01-27 04:34:29 +01:00
parent 0ff970fcd1
commit aa2f3b2961

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*- ;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-01-27T02:39:04+0100> ;; Time-stamp: <2020-01-27T04:33:20+0100>
;;; Commentary: ;;; Commentary:
@ -262,8 +262,8 @@
(defun my/ws-load-local-vars-first () (defun my/ws-load-local-vars-first ()
"Loads local variables (fill-column) before enabling whitespace-mode." "Loads local variables (fill-column) before enabling whitespace-mode."
(when (< emacs-major-version 27) ; We don't use 'lines-tail in Emacs >= 27. (when (< emacs-major-version 27) ; We don't use 'lines-tail in Emacs >= 27.
(hack-local-variables) (hack-local-variables))
(whitespace-mode)) (whitespace-mode)
) )
(defvar my/no-ws-cleanup nil (defvar my/no-ws-cleanup nil