From 4353535a98e700f1afb7cdf302a1456471bcc5c8 Mon Sep 17 00:00:00 2001 From: ZarsBranchkin Date: Wed, 21 Jun 2017 00:10:25 +0300 Subject: [PATCH] Fix disabled scrollbar remains --- core/core-spacemacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el index 468a860c7..17f31e677 100644 --- a/core/core-spacemacs.el +++ b/core/core-spacemacs.el @@ -158,13 +158,13 @@ the final step of executing code in `emacs-startup-hook'.") (defun spacemacs//removes-gui-elements () "Remove the menu bar, tool bar and scroll bars." ;; removes the GUI elements + (when (and (fboundp 'scroll-bar-mode) (not (eq scroll-bar-mode -1))) + (scroll-bar-mode -1)) (when (and (fboundp 'tool-bar-mode) (not (eq tool-bar-mode -1))) (tool-bar-mode -1)) (unless (spacemacs/window-system-is-mac) (when (and (fboundp 'menu-bar-mode) (not (eq menu-bar-mode -1))) (menu-bar-mode -1))) - (when (and (fboundp 'scroll-bar-mode) (not (eq scroll-bar-mode -1))) - (scroll-bar-mode -1)) ;; tooltips in echo-aera (when (and (fboundp 'tooltip-mode) (not (eq tooltip-mode -1))) (tooltip-mode -1)))