From 60d807cc33d9667902c7db7c707a058ddae4bba3 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 25 Oct 2016 13:11:25 +0200 Subject: [PATCH] Move UI hacks to the beginning of the init file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s very ugly if it happens only after all the `use-package` magic… --- init.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index eb4bbd9..f3f938b 100644 --- a/init.el +++ b/init.el @@ -162,6 +162,13 @@ (set-face-attribute 'default t :font "Hack-10") (set-frame-font "Hack-10" nil t) +;; UI hacks: turn off the scroll bar (that’s why Nyan-cat is here), +;; the toolbar (I don’t really use it), and the menu bar (I rarely use +;; it, and in those rare occasions I can simply turn it on) +(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) +(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) +(if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) + ;; Some personal stuff (setq user-mail-address "gergely@polonkai.eu") @@ -892,11 +899,6 @@ ;; text-mode settings (add-hook 'text-mode-hook (lambda () (visual-line-mode t))) -;; UI hacks: turn off scroll bar (that’s why Nyan-cat is here) and the -;; toolbar (I don’t really use it) -(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) -(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) - ;; Add some symbols to be prettified (setq prettify-symbols-alist '(("lambda" . 955) ; λ