-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
73 lines (54 loc) · 1.51 KB
/
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
64
65
66
67
68
69
70
71
72
73
;;; init.el --- Basic init.
;;; Commentary:
;;; Code:
(let ((minver "26.1"))
(when (version< emacs-version minver)
(error "Your emacs is too old -- this config requires v%s or higher" minver)))
(when (version< emacs-version "27.1")
(message "Your emacs is old, and some functionality in this config will be disabled. PLease upgrade if possible."))
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
;; Bigger font on 4K
(when (display-graphic-p)
(if (= (x-display-pixel-width) 3840)
(set-face-attribute 'default nil :height 200)
(set-face-attribute 'default nil :height 180)))
;;; Disable sounds.
(setq visible-bell t)
(setq ring-bell-function 'ignore)
(defconst *is-a-mac* (eq system-type 'darwin))
(setq custom-file (locate-user-emacs-file "custom.el"))
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
;;; Packages
(require 'init-elpa)
;;; UI
(require 'init-mode-line)
(require 'init-themes)
;;; Editor
(require 'init-editor)
(require 'init-corfu)
(require 'init-org)
;;; Misc
(require 'init-exec-path)
(require 'init-projectile)
(require 'init-debug)
(require 'init-ssh)
;;; Languages
(require 'init-eglot)
(require 'init-flymake)
(require 'init-lisp)
(require 'init-rust)
(require 'init-sail)
(require 'init-go)
(require-package 'yaml-mode)
;;; System Specific
(require 'init-osx)
;;; Version Control
(require-package 'magit)
;;; Search
(require-package 'ag)
(when (file-exists-p custom-file)
(load custom-file))
(setq c-default-style "linux")
;;; init.el ends here