From 7031dd28b527373ac780a437fc87f327c9ab6a9e Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 27 Jan 2020 01:53:26 +0100 Subject: [PATCH] Emacs: Disable whitespace-mode workaround for Emacs >= 27. --- init.d/text/common.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.d/text/common.el b/init.d/text/common.el index b3542c9..490c39a 100644 --- a/init.d/text/common.el +++ b/init.d/text/common.el @@ -1,6 +1,6 @@ ;;; 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: @@ -260,8 +260,9 @@ (defun my/ws-load-local-vars-first () "Loads local variables (fill-column) before enabling whitespace-mode." - (hack-local-variables) - (whitespace-mode) + (when (< emacs-major-version 27) ; We don't use 'lines-tail in Emacs >= 27. + (hack-local-variables) + (whitespace-mode)) ) (defvar my/no-ws-cleanup nil