From 3422f46ed8d94ac492bee03405a757197d4edf10 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 25 Feb 2019 19:10:31 -0800 Subject: [PATCH] Move `scroll-bar-mode' to GUI config, fix warning Move `scroll-bar-mode' to `oni-gui` because it isn't defined in the non-GUI version. Fix the warning that `tool-bar-mode' wasn't guaranteed to be defined by requiring the `tool-bar' library. --- oni-gui.el | 4 +++- oni-ui.el | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/oni-gui.el b/oni-gui.el index 7b94230..66b3044 100644 --- a/oni-gui.el +++ b/oni-gui.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190130014447 +;; Version: 20190225191251 ;; Package-Requires: (oni-ui) ;; This program is free software; you can redistribute it and/or modify @@ -32,6 +32,8 @@ (setq-default cursor-type '(bar . 2)) (setq-default cursor-in-non-selected-windows 'box) +(scroll-bar-mode -1) + (load-theme 'yoshi :no-confirm) ;;;###autoload(require 'oni-gui) diff --git a/oni-ui.el b/oni-ui.el index 64c2e9f..f9126cc 100644 --- a/oni-ui.el +++ b/oni-ui.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190130014741 +;; Version: 20190225191257 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -25,9 +25,10 @@ ;;; Code: +(require 'tool-bar) + (menu-bar-mode -1) (tool-bar-mode -1) -(scroll-bar-mode -1) (setq inhibit-startup-screen t)