-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
executable file
·48 lines (44 loc) · 1.38 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
;; -*- lexical-binding: t -*-
;; Unset file-name-handler-alist temporarily and restore it later
(unless (or (daemonp) noninteractive init-file-debug)
(let ((old-file-name-handler-alist file-name-handler-alist))
(setq file-name-handler-alist nil)
(add-hook 'emacs-startup-hook
(lambda ()
"Recover file name handlers."
(setq file-name-handler-alist
(delete-dups (append file-name-handler-alist
old-file-name-handler-alist)))))))
;; Load path for manually installed packages
(push "~/.emacs.d/module" load-path)
(push "~/.emacs.d/experimental" load-path)
;; base
(require 'zw-base)
(require 'zw-package)
(require 'zw-compat)
(require 'zw-startup)
;; appearance
(require 'zw-theme)
(require 'zw-appearance)
(require 'zw-mode-line)
(require 'zw-tab-bar)
(require 'zw-tab-line)
;; tools
(require 'zw-tools)
(require 'zw-editor)
(require 'zw-completion)
;; development
(require 'zw-ide)
(require 'zw-lang)
;; document
(require 'zw-document)
;; user config
(setq zw/user-config
(expand-file-name "zw-user-config.el" user-emacs-directory))
(when (not (file-exists-p zw/user-config))
(copy-file "~/.emacs.d/resources/scripts/zw-user-config.el" zw/user-config))
(load zw/user-config)
(defun zw/open-user-config ()
"Open user configuration file."
(interactive)
(find-file zw/user-config))