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