blob: 763493256dbc1229d5af49dcf39e6467bf4d5113 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
(add-hook 'text-mode-hook 'display-line-numbers-mode)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
(add-hook 'emacs-startup-hook 'startup/revert-file-name-handler-alist)
(add-hook 'emacs-startup-hook 'startup/reset-gc)
(show-paren-mode 1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-prettify-symbols-mode t)
(electric-pair-mode t)
(global-hl-line-mode t)
(recentf-mode 1)
(savehist-mode 1)
(global-auto-revert-mode 1)
(set-frame-parameter (selected-frame) 'alpha '(80 . 80))
(add-to-list 'default-frame-alist '(alpha .(80 . 80)))
(defvar startup/file-name-handler-alist file-name-handler-alist)
(defalias 'open 'find-file-other-window)
(defalias 'clean 'eshell/clear-scrollback)
(defalias 'yes-or-no-p 'y-or-n-p)
;; Make emacs startup faster
(setq gc-cons-threshold 402653184
gc-cons-percentage 0.6)
(setq-default major-mode 'text-mode)
(setq inhibit-startup-message t)
(setq x-select-enable-clipboard t)
(setq make-backup-files nil)
(setq scroll-conservatively 100)
(setq ring-bell-function 'ignore)
(setq history-length 25)
(setq global-auto-revert-non-file-buffers t)
(setq native-comp-async-report-warnings-errors 'silent)
(setq warning-minimum-level :error)
(setq-default tab-width 4)
(setq-default standard-indent 4)
(setq c-basic-offset tab-width)
(setq-default electric-indent-inhibit t)
(setq-default indent-tabs-mode t)
(setq backward-delete-char-untabify-method 'nil)
(setq electric-pair-pairs '(
(?\{ . ?\})
(?\( . ?\))
(?\[ . ?\])
(?\" . ?\")
))
(setq use-package-always-defer t)
(setq eshell-prompt-regexp "^[^αλ\n]*[αλ] ")
(setq eshell-prompt-function
(lambda nil
(concat
(if (string= (eshell/pwd) (getenv "HOME"))
(propertize "~" 'face `(:foreground "#99CCFF"))
(replace-regexp-in-string
(getenv "HOME")
(propertize "~" 'face `(:foreground "#99CCFF"))
(propertize (eshell/pwd) 'face `(:foreground "#99CCFF"))))
(if (= (user-uid) 0)
(propertize " α " 'face `(:foreground "#FF6666"))
(propertize " λ " 'face `(:foreground "#A6E22E"))))))
(setq eshell-highlight-prompt nil)
(setq file-name-handler-alist nil)
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
|