diff --git a/init.el b/init.el index 3cc7bfc..c6a4442 100644 --- a/init.el +++ b/init.el @@ -304,9 +304,11 @@ (setq desktop-save t use-file-dialog nil) -(require 'stumpwm-mode) -(setq stumpwm-shell-program - "~/git/stumpwm-contrib/util/stumpish/stumpish") +(with-eval-after-load 'stumpwm-mode + (setq stumpwm-shell-program + "~/git/stumpwm-contrib/util/stumpish/stumpish")) +(autoload 'stumpwm-mode "stumpwm-mode" "stumpwm-mode" t) +(add-to-list 'auto-mode-alist '("\\.stumpwmrc$" . stumpwm-mode)) ;; I'd love to know how to automatically set some modes for some ;; specific files (i.e. by name of file). Start stumpwm-mode when I ;; open ~/.stumpwmrc, disable visual lines and enable truncate lines