summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-10 19:20:32 +0100
committerAlan Pearce2014-07-10 19:20:32 +0100
commit024576a09aec23f96807df26b88db6f090e9c220 (patch)
tree6ceb40acbf3832a58682327eb80ce43e97fe42cc
parent9db5a1e01f69bbbbe8243a2c81107cab4b3551a7 (diff)
downloadnixfiles-024576a09aec23f96807df26b88db6f090e9c220.tar.lz
nixfiles-024576a09aec23f96807df26b88db6f090e9c220.tar.zst
nixfiles-024576a09aec23f96807df26b88db6f090e9c220.zip
Emacs: workaround ws-butler daemon issue
lewang/ws-butler#4
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index aa78e335..228adeb1 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -329,7 +329,10 @@
         (message "File '%s' successfully removed" filename)))))
 
 (req-package ws-butler
+  :if window-system
   :config (ws-butler-global-mode 1))
+(if (daemonp)
+    (add-hook #'before-make-frame-hook (lambda () (ws-butler-global-mode 1))))
 
 (req-package fasd
   :bind ("C-x C-/" . fasd-find-file)