Move some customizations to the early init file.

master
Josiah Ledbetter 3 years ago
parent 732d88212d
commit e66ff74035

@ -0,0 +1,34 @@
;;; early-init.el --- Early Init File -*- lexical-binding: t -*-
;;; Commentary:
;; Prior to Emacs 27, the `init.el' was supposed to handle the
;; initialisation of the package manager, by means of calling
;; `package-initialize'. Starting with Emacs 27, the default
;; behaviour is to start the package manager before loading the init
;; file.
;;; Code:
;; Initialise installed packages
(setq package-enable-at-startup t)
(defvar package-quickstart)
;; Allow loading from the package cache
(setq package-quickstart t)
;; Do not resize the frame at this early stage.
(setq frame-inhibit-implied-resize t)
;; Disable GUI elements
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq inhibit-splash-screen t)
(setq use-dialog-box t) ; only for mouse events
(setq use-file-dialog nil)
(setq inhibit-startup-echo-area-message "prot") ; read the docstring
(setq inhibit-startup-screen t)
(setq inhibit-startup-buffer-menu t)
;;; early-init.el ends here

@ -3,9 +3,6 @@
;; (global-display-line-numbers-mode)); show line numbers; use this instead of linum if you can
(global-visual-line-mode t) ; turn on word-wrap globally
(menu-bar-mode -1) ; disable visual menu on emacs
(tool-bar-mode -1) ; disable toolbar
(setq case-fold-search t) ; ignore case when searching
(fset 'yes-or-no-p 'y-or-n-p) ; make it easier to answer qs.
;; set default font

Loading…
Cancel
Save