-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
95 lines (74 loc) · 2.02 KB
/
init.el
File metadata and controls
95 lines (74 loc) · 2.02 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
;;; init.el --- Initialization -*- lexical-binding: t no-byte-compile: t -*-
;;
;; Author: Qing YI <qingyi.tss@gmail.com>
;; URL: https://github.com/q3yi/emacs.d
;;
;; These files are not part of GNU Emacs.
;;
;;; License: MIT
;;; Commentary:
;;; Code:
;; add custom lisp filepath
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
;; change custom-file from 'init.el' to 'custom.el'
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(require 'init-coding-system)
;; setup a local proxy server
(require 'init-proxy)
(require 'init-package-util)
(require 'init-defaults)
(require 'init-scroll)
(require 'init-tab)
(require 'init-epa)
(require 'init-delight)
(require 'init-themes)
(require 'init-project)
(require 'init-window)
(when (eq system-type 'darwin)
(require 'init-osx))
;; when emacs started in WSL
(when (getenv "WSL_DISTRO_NAME")
(require 'init-rime))
(require 'init-consult)
(require 'init-completion)
(require 'init-embark)
(require 'init-pro-editing)
(require 'init-dired)
(require 'init-term)
(require 'init-isearch)
(require 'init-ibuffer)
(require 'init-avy)
(require 'init-undo-tree)
(require 'init-tempel)
(require 'init-git)
(require 'init-paredit)
(require 'init-flymake)
(require 'init-org)
(require 'init-elfeed)
;; programming language without lsp configuration
(require 'init-emacs-lisp)
(require 'init-fish)
;;(require 'init-scheme)
(require 'init-markdown)
(require 'init-lua)
(require 'init-yaml)
(require 'init-toml)
(require 'init-solidity)
;; programming language with lsp enabled
(require 'init-eglot)
(require 'init-golang)
(require 'init-rust)
(require 'init-python)
(require 'init-haskell)
(require 'init-dart)
(require 'init-javascript) ;; TODO configurate when start js development
(require 'init-helpful)
;; load custom.el if file exists
(when (file-exists-p custom-file)
(load custom-file))
;; start emacs server if no server process is running
(require 'server)
(unless (server-running-p server-name)
(server-start))
(provide 'init)
;;; init.el ends here