-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
63 lines (50 loc) · 2.23 KB
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
;;; early-init.el --- -*- lexical-binding: t -*-
;;; Commentary: My early init file
;;; Code:
(setq gc-cons-threshold #x40000000)
(when (boundp 'read-process-output-max)
(setq read-process-output-max (* 64 1024 1024)))
(setq package-enable-at-startup nil)
(setenv "LIBRARY_PATH" "/opt/homebrew/opt/gcc/lib/gcc/13:/opt/homebrew/opt/libgccjit/lib/gcc/13:/opt/homebrew/opt/gcc/lib/gcc/13/gc\
c/aarch64-apple-darwin23/13")
(customize-set-variable 'native-comp-async-report-warnings-errors nil)
(customize-set-variable 'native-comp-speed 3)
(customize-set-variable 'native-comp-deferred-compilation nil)
(setq kill-ring-max 100000)
(custom-set-variables '(savehist-additional-variables '(kill-ring)))
;; (setq ffap-alist nil) ; faster, dumber prompting
;; (setq ffap-url-regexp nil) ; disable URL features in ffap
;; (setq ffap-shell-prompt-regexp nil) ; disable shell prompt stripping
;; (setq ffap-gopher-regexp nil) ; disable gopher bookmark matching
;; (setq ffip-use-rust-fd t)
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; (push '(menu-bar-lines . 0) default-frame-alist)
;; (push '(tool-bar-lines . 0) default-frame-alist)
;; (push '(fullscreen . maximized) default-frame-alist)
;; (push '(ns-use-native-fullscreen . t) default-frame-alist)
;; (push '(ns-transparent-titlebar . t) default-frame-alist)
;; (push '(vertical-scroll-bars . nil) default-frame-alist)
;;(push '(background-color . "#1e1e2e") default-frame-alist)
(setenv "LSP_USE_PLISTS" "true") ;; in early-init.el
(setq frame-inhibit-implied-resize t
frame-resize-pixelwise t
frame-title-format nil
truncate-lines t
truncate-partial-width-windows t
package-enable-at-startup nil
indicate-buffer-boundaries '((bottom . right))
inhibit-splash-screen t
inhibit-startup-buffer-menu t
inhibit-startup-message t
inhibit-startup-screen t
inhibit-compacting-font-caches t
initial-major-mode 'fundamental-mode
initial-scratch-message nil
load-prefer-newer noninteractive
site-run-file nil)
(add-to-list 'default-frame-alist '(undecorated . t))
(provide 'early-init)
;;; early-init.el ends here