Emacs: Disable whitespace-mode workaround for Emacs >= 27.

This commit is contained in:
tastytea 2020-01-27 01:53:26 +01:00
parent 5acc814905
commit 7031dd28b5

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-23T02:40:52+0100> ;; Time-stamp: <2020-01-27T01:53:16+0100>
;;; Commentary: ;;; Commentary:
@ -260,8 +260,9 @@
(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."
(hack-local-variables) (when (< emacs-major-version 27) ; We don't use 'lines-tail in Emacs >= 27.
(whitespace-mode) (hack-local-variables)
(whitespace-mode))
) )
(defvar my/no-ws-cleanup nil (defvar my/no-ws-cleanup nil