From 6423a3aea911877058dbef662a99fbe5164947ff Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 24 May 2017 21:20:27 +1000 Subject: [PATCH] stumpwm-mode can be activated with auto-mode-list --- lisp/my-file-modes.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) -- 2.39.2