white

loader prototype

1 +auto-save-list
...\ No newline at end of file ...\ No newline at end of file
...@@ -10,3 +10,9 @@ ...@@ -10,3 +10,9 @@
10 10
11 (require 'use-package) 11 (require 'use-package)
12 (setq use-package-always-ensure t) 12 (setq use-package-always-ensure t)
13 +
14 +(defun activate (&rest modes)
15 + (mapc (lambda (mode)
16 + (load (concat "~/.emacs.d/config/" (symbol-name mode))))
17 + modes))
18 +
......
1 -(load "~/.emacs.d/config/index") 1 +(load "~/.emacs.d/loader")
2 -(load "~/.emacs.d/config/global-mode")
3 -(load "~/.emacs.d/config/lisp-mode")
4 -(load "~/.emacs.d/config/c++-mode")
5 -(load "~/.emacs.d/config/js-mode")
6 -
7 -
8 -
9 2
3 +(load-mode
4 + 'global-mode
5 + 'lisp-mode
6 + 'c++-mode
7 + 'js-mode)
10 8
11 (custom-set-faces 9 (custom-set-faces
12 ;; custom-set-faces was added by Custom. 10 ;; custom-set-faces was added by Custom.
...@@ -34,7 +32,7 @@ ...@@ -34,7 +32,7 @@
34 '(neo-file-link-face ((t (:foreground "white")))) 32 '(neo-file-link-face ((t (:foreground "white"))))
35 33
36 '(minibuffer-prompt ((t (:foreground "color-33" :weight bold)))) 34 '(minibuffer-prompt ((t (:foreground "color-33" :weight bold))))
37 - 35 +
38 '(font-lock-comment-delimiter-face ((t (:foreground "color-22")))) 36 '(font-lock-comment-delimiter-face ((t (:foreground "color-22"))))
39 '(font-lock-comment-face ((t (:foreground "color-22")))) 37 '(font-lock-comment-face ((t (:foreground "color-22"))))
40 38
......
1 +(require 'package)
2 +(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
3 +(add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
4 +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
5 +(package-initialize)
6 +
7 +(unless (package-installed-p 'use-package)
8 + (package-refresh-contents)
9 + (package-install 'use-package))
10 +
11 +(require 'use-package)
12 +(setq use-package-always-ensure t)
13 +
14 +(defun load-mode (&rest modes)
15 + (mapc (lambda (mode)
16 + (load (concat "~/.emacs.d/config/" (symbol-name mode))))
17 + modes))
18 +
1 -
2 -;; ----- smex-history -----
3 -(
4 - magit-gitignore
5 - cd
6 - 5x5
7 - arp
8 - dbx
9 - dig
10 - erc
11 -)
12 -
13 -;; ----- smex-data -----
14 -(
15 - (magit-gitignore . 3)
16 -)