all repos — nixfiles @ 024576a09aec23f96807df26b88db6f090e9c220

System and user configuration, managed by nix and home-manager

Emacs: workaround ws-butler daemon issue

lewang/ws-butler#4
Alan Pearce alan@alanpearce.co.uk
Thu, 10 Jul 2014 19:20:32 +0100
commit

024576a09aec23f96807df26b88db6f090e9c220

parent

9db5a1e01f69bbbbe8243a2c81107cab4b3551a7

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -329,7 +329,10 @@ (kill-buffer buffer)         (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)