init.el - stumpwm-mode

emacs-init-time to open a session showing (only) the *Messages* buffer -
before - 23.8s
after  - 20.9s
This commit is contained in:
Kashish Sharma 2016-06-13 22:00:55 +05:30
parent 41cfc1d022
commit 4930c41675
1 changed files with 5 additions and 3 deletions

View File

@ -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