diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-09 20:21:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 20:21:58 -0400 |
commit | 5637f5b5c3e46ed1362e21326f2fd5a9f156bf49 (patch) | |
tree | 765611fdf4d72eea64044a53c6749bf559191583 /early-init.el | |
parent | Merge `initial-plans-docs` branch to `stable` branch (diff) | |
parent | Don't create the `auto-save-list` directory (diff) | |
download | mmosmacs-5637f5b5c3e46ed1362e21326f2fd5a9f156bf49.tar.gz mmosmacs-5637f5b5c3e46ed1362e21326f2fd5a9f156bf49.tar.bz2 mmosmacs-5637f5b5c3e46ed1362e21326f2fd5a9f156bf49.zip |
Merge `sensible-defaults` branch to `stable` branch
This closes RFC #2
Diffstat (limited to 'early-init.el')
-rw-r--r-- | early-init.el | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el new file mode 100644 index 0000000..37222a4 --- /dev/null +++ b/early-init.el | |||
@@ -0,0 +1,60 @@ | |||
1 | ;;; -*- lexical-binding: t; -*- | ||
2 | ;;; early-init.el | ||
3 | ;; | ||
4 | ;; Early Init file for MMOSMacs. This is loaded before the GUI and | ||
5 | ;; package system are initialized. This should contain only what | ||
6 | ;; absolutely must be in Early Init. | ||
7 | |||
8 | |||
9 | ;; --------------------------------------------------------------------- | ||
10 | ;;; UI Adjustments | ||
11 | ;; --------------- | ||
12 | ;; The primary goal of this Section is to prevent Emacs from flashing or | ||
13 | ;; stuttering visually on startup. | ||
14 | ;; | ||
15 | ;; If these customizations were placed in `init.el', as is the norm, | ||
16 | ;; Emacs would initialize the UI elements, then make whatever | ||
17 | ;; customizations we wrote. | ||
18 | ;; | ||
19 | ;; By placing the customizations here, they are applied before the UI is | ||
20 | ;; initialized, preventing any visual glitches altogether. | ||
21 | ;; --------------------------------------------------------------------- | ||
22 | |||
23 | ;; --------------------------------- | ||
24 | ;; Disable superfluous UI elements | ||
25 | ;; ------------------------------- | ||
26 | ;; These UI elements are useless in | ||
27 | ;; a keyboard-centric environment. | ||
28 | ;; --------------------------------- | ||
29 | |||
30 | ;; Disable the menu bar | ||
31 | (push '(menu-bar-lines . 0) default-frame-alist) | ||
32 | |||
33 | ;; Disable the tool-bar | ||
34 | (push '(tool-bar-lines . 0) default-frame-alist) | ||
35 | |||
36 | ;; Disable scroll bars | ||
37 | (push '(vertical-scroll-bars . 0) default-frame-alist) | ||
38 | |||
39 | |||
40 | ;; --------------------------------- | ||
41 | ;; Maximize frame on startup | ||
42 | ;; ------------------------- | ||
43 | ;; Resizing is one of the primary | ||
44 | ;; sources of visual glitching. | ||
45 | ;; --------------------------------- | ||
46 | |||
47 | (push '(fullscreen . maximized) initial-frame-alist) | ||
48 | (push '(ns-transparent-titlebar . t) default-frame-alist) | ||
49 | (setq frame-inhibit-implied-resize t | ||
50 | frame-resize-pixelwise t) | ||
51 | |||
52 | |||
53 | ;; --------------------------------- | ||
54 | ;; Start with a black background | ||
55 | ;; ----------------------------- | ||
56 | ;; This is necessary to prevent eye | ||
57 | ;; damage | ||
58 | ;; --------------------------------- | ||
59 | |||
60 | (set-face-attribute 'default nil :background "#000000" :foreground "#FFFFFF") | ||