-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
65 lines (49 loc) · 1.87 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
;; * Loading `package.el'
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;; Hide warning about package still requiring 'cl
(setq byte-compile-warnings '(cl-functions))
(setq package-quickstart t
package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")
("melpa" . "https://melpa.org/packages/"))
package-archive-priorities '(("melpa" . 10)
("gnu" . 5)))
(package-initialize)
;; * Bootstrapping `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-defer t)
(use-package auto-package-update
;; Automatically update Emacs packages.
;; https://github.com/rranelli/auto-package-update.el
:ensure t
:demand t
:config
(setq auto-package-update-delete-old-versions t
auto-package-update-prompt-before-update t
auto-package-update-hide-results t)
(auto-package-update-maybe))
(use-package delight
;; Enables you to customise the mode names displayed in the mode line.
;; https://elpa.gnu.org/packages/delight.html
:ensure t)
(use-package use-package-chords
;; The :chords keyword allows you to define key-chord bindings for use-package
;; declarations in the same manner as the :bind keyword.
;; https://github.com/jwiegley/use-package/blob/master/use-package-chords.el
:ensure t
:demand t
:config (key-chord-mode 1))
;; * Loading my init code
(defvar alc-lisp-dir (expand-file-name "lisp/" user-emacs-directory)
"Lisp directory.")
(defvar alc-my-lisp-dir (expand-file-name "alc/" alc-lisp-dir)
"My personal lisp directory.")
(add-to-list 'load-path alc-my-lisp-dir)
(require 'alc-main)
(require 'alc-org)
;; * Wrapping up
(provide 'alc-init)