From: Mark Wooding Date: Thu, 17 Dec 2009 17:51:05 +0000 (+0000) Subject: el/dot-emacs.el: Emacs 22 doesn't have `whitespace-mode'. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/5fabceb3301afd7d4ca032ac9c9cd6e0a3e73fef el/dot-emacs.el: Emacs 22 doesn't have `whitespace-mode'. So use `trap'. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 0d0a7d7..6a7cf70 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -681,6 +681,8 @@ case." (auto-fill-mode 1) (setq fill-column 77) (setq show-trailing-whitespace t) + (let ((whitespace-style (remove 'trailing whitespace-style))) + (trap (whitespace-mode t))) (and (fboundp 'gtags-mode) (gtags-mode)) (outline-minor-mode t)