all repos — nixfiles @ c71291af427449c0a1b00c5b824136163ab70195

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

Emacs: Configure window-dividers in X11 environments
Alan Pearce alan@alanpearce.uk
Tue, 28 Feb 2017 15:12:20 +0100
commit

c71291af427449c0a1b00c5b824136163ab70195

parent

3f2a5597103e258890671fe4bf4d57e0076ceb13

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

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -181,9 +181,12 @@ (show-mode-line))) 
             (add-to-list 'default-frame-alist '(border-width . 0))
             (add-to-list 'default-frame-alist '(internal-border-width . 0))
-            (setq window-divider-default-bottom-width 6
-                  window-divider-default-places t)
-            (window-divider-mode +1)
+            (when (eq window-system 'x)
+              (setq window-divider-default-bottom-width 1
+                    window-divider-default-right-width 1
+                    window-divider-default-places t)
+              (setq mode-line-default-hidden t)
+              (window-divider-mode +1))
 
             (add-hook 'after-change-major-mode-hook #'hide-mode-line-if-default-hidden)