From 8c2197e077cc2727ad2ecb9844899a5491190f32 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 4 Feb 2021 17:30:33 -0500 Subject: [PATCH] Add version check for scroll bar mode --- README.org | 5 ++++- modules/core.el | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 1372e8b..1a00167 100644 --- a/README.org +++ b/README.org @@ -239,7 +239,10 @@ Emacs' default user interface is horrendous, but with less than 10 lines of code #+begin_src emacs-lisp (setq inhibit-startup-message t) (global-prettify-symbols-mode) -(scroll-bar-mode -1) + +(when (< emacs-major-version 27) + (scroll-bar-mode -1)) + (menu-bar-mode -1) (tool-bar-mode -1) (tooltip-mode -1) diff --git a/modules/core.el b/modules/core.el index 2b50e54..9eef6af 100644 --- a/modules/core.el +++ b/modules/core.el @@ -25,7 +25,10 @@ (setq inhibit-startup-message t) (global-prettify-symbols-mode) -(scroll-bar-mode -1) + +(when (< emacs-major-version 27) + (scroll-bar-mode -1)) + (menu-bar-mode -1) (tool-bar-mode -1) (tooltip-mode -1)