all repos — nixfiles @ 3eef5fb45506f504728fdfbe33423d17c54b6254

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

Emacs: Configure borders and window dividers
Alan Pearce alan@alanpearce.uk
Tue, 21 Feb 2017 17:09:08 +0100
commit

3eef5fb45506f504728fdfbe33423d17c54b6254

parent

3f2d03c57aa3237acfb799e39dda1b63da52cc53

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

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -143,6 +143,12 @@ :config (progn             (load-theme 'basic t)
 
             (set-face-background 'mode-line "#a1b56c")
+            (set-face-background 'border "#a1b56c")
+            (set-face-foreground 'border "#a1b56c")
+            (set-face-background 'vertical-border "#a1b56c")
+            (set-face-foreground 'vertical-border "#a1b56c")
+            (set-face-background 'window-divider "#a1b56c")
+            (set-face-foreground 'window-divider "#a1b56c")
 
             (defvar mode-line-default-format mode-line-format)
             (defcustom mode-line-default-hidden nil
@@ -182,6 +188,12 @@ (defun hide-mode-line-if-default-hidden ()               (if mode-line-default-hidden
                   (hide-mode-line)
                 (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)
 
             (add-hook 'after-change-major-mode-hook #'hide-mode-line-if-default-hidden)