emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit f73fc527a03b7ca4f0c70c556585be6e5285e78c
parent 38c37bf81c6663e798741fa8044396718824f48b
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 26 Mar 2020 02:32:05 +0300

fix decluttering issues

Diffstat:
Minit.org | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/init.org b/init.org @@ -10,6 +10,7 @@ - [[#ignoring-initel-changes-on-git][Ignoring init.el changes on Git]] - [[#meta][Meta]] - [[#startup-settings][Startup Settings]] + - [[#declutter][Declutter]] - [[#use-package][use-package]] - [[#custom-file][Custom-file]] - [[#private-file][Private file]] @@ -101,22 +102,22 @@ To load init.el properly we run a function such as this. The most important stuff are (for me) is =use-package= and disabling the clutter as soon as possible. By clutter, I mean -bars and menus. +bars and menus. Also let's disable the splash screen. +** Declutter #+BEGIN_SRC emacs-lisp (menu-bar-mode 0) +(setq inhibit-splash-screen t) #+END_SRC -I also want to disable tool-bar and scrollbar but that will -give an error on emacs-nox. This is a workaround. - +If you are using emacs-nox, tool-bar-mode (probably) and +scroll-bar-mode will not be defined. This checks if they are +defined, and, if they are, will set them to 0. #+BEGIN_SRC emacs-lisp -(when (display-graphic-p) - (tool-bar-mode 0) - (scroll-bar-mode 0) -) +(when (fboundp 'tool-bar-mode) (tool-bar-mode 0)) +(when (fboundp 'scroll-bar-mode) (scroll-bar-mode 0)) #+END_SRC ** use-package