Move UI hacks to the beginning of the init file

It’s very ugly if it happens only after all the `use-package` magic…
This commit is contained in:
Gergely Polonkai 2016-10-25 13:11:25 +02:00
parent aaab4edfd6
commit 60d807cc33

12
init.el
View File

@ -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 (thats why Nyan-cat is here),
;; the toolbar (I dont 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 (thats why Nyan-cat is here) and the
;; toolbar (I dont 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) ; λ