blob: dd27ef2fd0bd711c8bba4bad3e8450ba83d12810 (
plain)
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
|
;; file handler optimization — skip regex matching on every load
(defvar my--old-file-name-handler-alist file-name-handler-alist)
(setq file-name-handler-alist nil)
(add-hook 'emacs-startup-hook
(lambda ()
(setq file-name-handler-alist my--old-file-name-handler-alist)))
;; configure frame parameters
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
(push '(horizontal-scroll-bars) default-frame-alist)
(setq menu-bar-mode nil
tool-bar-mode nil
scroll-bar-mode nil)
;; performance
(setq frame-resize-pixelwise t
frame-inhibit-implied-resize t
auto-mode-case-fold nil
read-process-output-max (* 2 1024 1024)
load-prefer-newer t)
(setq redisplay-skip-fontification-on-input t)
;; bidirectional text
(setq-default bidi-display-reordering 'left-to-right
bidi-paragraph-direction 'left-to-right)
(setq bidi-inhibit-bpa t)
;; pgtk latency improvement
(when (boundp 'pgtk-wait-for-event-timeout)
(setq pgtk-wait-for-event-timeout 0.001))
;; utf-8
(set-charset-priority 'unicode)
(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
;; fonts - https://github.com/thep0y/monaco-nerd-font/releases/tag/v0.2.2
(let ((mono-spaced-font "Monaco Nerd Font Mono")
(proportionately-spaced-font "MonacoLigaturized Nerd Font"))
(set-face-attribute 'default nil :family mono-spaced-font :height 105)
(set-face-attribute 'fixed-pitch nil :family mono-spaced-font :height 1.0)
(set-face-attribute 'variable-pitch nil :family proportionately-spaced-font :height 1.0))
;; native comp warnings
(setq native-comp-async-report-warnings-errors 'silent)
|