diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 08:52:51 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 08:52:51 -0700 |
| commit | 61fa2329f553f9c7962e968e1ec98ae675903b70 (patch) | |
| tree | 0afdbf7c8fddda1718abee49db6206a5f8df5b09 /home/programs/emacs/early-init.el | |
| parent | directories first (diff) | |
| download | infra-61fa2329f553f9c7962e968e1ec98ae675903b70.tar.gz | |
users -> home
Diffstat (limited to 'home/programs/emacs/early-init.el')
| -rw-r--r-- | home/programs/emacs/early-init.el | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/home/programs/emacs/early-init.el b/home/programs/emacs/early-init.el new file mode 100644 index 0000000..3953c90 --- /dev/null +++ b/home/programs/emacs/early-init.el @@ -0,0 +1,45 @@ +;;; early-init.el --- Early initialization -*- lexical-binding: t -*- + +;;; Commentary: + +;;; Code: + +;; Startup speed, annoyance suppression +(setq gc-cons-threshold 10000000) +(setq byte-compile-warnings '(not obsolete)) +(setq warning-suppress-log-types '((comp) (bytecomp))) +(setq native-comp-async-report-warnings-errors 'silent) + +;; Silence startup message +(setq inhibit-startup-echo-area-message (user-login-name)) + +;; Default frame configuration: full screen, good-looking title bar on macOS +(setq frame-resize-pixelwise t) +(setq default-frame-alist '((fullscreen . maximized) + ;; Setting the face in here prevents flashes of + ;; color as the theme gets activated + (ns-appearance . light) + (ns-transparent-titlebar . t))) + +;; disable GUI elements +(scroll-bar-mode -1) ; hide the scroll bar +(tool-bar-mode -1) ; hide the tool bar +(menu-bar-mode +1) ; show the menu +(blink-cursor-mode -1) ; don't blink the cursor + +(setq make-pointer-invisible t) ;; hide cursor while typing +(setq use-dialog-box nil) ;; do not show GUI dialogs +(setq inhibit-startup-screen t) ;; hide the startup screen + +;; use utf-8 everywhere +(set-default-coding-systems 'utf-8) + +;; `use-package' is builtin since 29. +;; These variables must be set before loading `use-package'. +(setq use-package-always-ensure nil + use-package-always-defer t + use-package-enable-imenu-support t) + +(set-face-attribute 'default nil :family "Source Code Pro" :height 150) + +;;; early-init.el ends here |
