forked from DevelopmentCool2449/visual-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
32 lines (27 loc) · 1.27 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
;; If you use lsp-mode uncomment this.
;; (setenv "LSP_USE_PLISTS" "true")
;; Disable Scroll Bar in minibuffer window
(add-hook 'after-make-frame-functions
(lambda (frame)
(set-window-scroll-bars
(minibuffer-window frame) 0 nil 0 nil t)
(set-window-fringes
(minibuffer-window frame) 0 0 nil t)))
(defvar startup/file-name-handler-alist file-name-handler-alist)
;; Defer garbage collection further back in the startup process
(setopt gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.6
;; In noninteractive sessions, prioritize non-byte-compiled source files to
;; prevent the use of stale byte-code. Otherwise, it saves us a little IO time
;; to skip the mtime checks on every *.elc file.
load-prefer-newer noninteractive
;; `use-package' is builtin since 29.
;; It must be set before loading `use-package'.
use-package-enable-imenu-support t)
(setq file-name-handler-alist nil)
;; For android
(when (eq system-type 'android)
(setenv "PATH" (format "%s:%s" "/data/data/com.termux/files/usr/bin"
(getenv "PATH")))
(push "/data/data/com.termux/files/usr/bin" exec-path)
(setopt image-scaling-factor 3))