From: James Bunton Date: Wed, 24 May 2017 11:20:27 +0000 (+1000) Subject: stumpwm-mode can be activated with auto-mode-list X-Git-Url: https://code.delx.au/dotemacs/commitdiff_plain/6423a3aea911877058dbef662a99fbe5164947ff stumpwm-mode can be activated with auto-mode-list --- diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 6020b4c..ca984a3 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -61,11 +61,6 @@ (require 'ssh-file-modes) (when (require 'stumpwm-mode nil 'noerror) - (add-hook 'find-file-hook - (lambda () - (when (string= - ".stumpwmrc" - (file-name-nondirectory (buffer-file-name))) - (stumpwm-mode))))) + (add-to-list 'auto-mode-alist '("/\\.stumpwmrc\\'" . stumpwm-mode))) (require 'yaml-mode)