From 8cd2eccc9ab96273d789f53fdd1ebf1ce025069f Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Tue, 30 May 2017 18:10:48 -0700 Subject: [PATCH] Conditional scroll bar --- config/emacs.d/init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/emacs.d/init.el b/config/emacs.d/init.el index 4d3d154..e83b092 100644 --- a/config/emacs.d/init.el +++ b/config/emacs.d/init.el @@ -27,20 +27,19 @@ (set-default-font "Source Code Pro-12") (line-number-mode t) (global-linum-mode t) -(when 'display-graphic-p - (global-hl-line-mode)) (menu-bar-mode -1) (tool-bar-mode -1) -(scroll-bar-mode -1) (setq inhibit-startup-screen t) (setq-default truncate-lines t) (setq-default truncate-partial-width-windows nil) (setq-default scroll-conservatively 100) + (when 'display-graphic-p (lambda () - (global-hl-line-mode t))) + (global-hl-line-mode t) + (scroll-bar-mode -1))) (global-whitespace-mode) (setq whitespace-style '(face trailing tabs spaces lines empty indentation