commit | author | age
|
3aeba0
|
1 |
;; Set file for custom changes
|
C |
2 |
(setq custom-file "~/.emacs.d/custom.el")
|
|
3 |
(load custom-file 'noerror)
|
|
4 |
|
990949
|
5 |
;; Repos
|
C |
6 |
(require 'package)
|
d2a873
|
7 |
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
|
4ebb4d
|
8 |
("nongnu" . "https://elpa.nongnu.org/nongnu/")
|
JG |
9 |
("melpa" . "https://melpa.org/packages/")))
|
990949
|
10 |
(package-initialize)
|
C |
11 |
|
|
12 |
;; use-package
|
|
13 |
(unless (package-installed-p 'use-package)
|
|
14 |
(package-refresh-contents)
|
|
15 |
(package-install 'use-package))
|
7f1841
|
16 |
(setq package-install-upgrade-built-in t)
|
990949
|
17 |
|
C |
18 |
(eval-when-compile
|
|
19 |
(require 'use-package))
|
0c72fd
|
20 |
(require 'use-package-ensure)
|
JG |
21 |
(setq use-package-always-ensure t)
|
990949
|
22 |
|
C |
23 |
;; auto-package-update
|
|
24 |
(use-package auto-package-update
|
|
25 |
:ensure t
|
|
26 |
:config
|
|
27 |
(setq auto-package-update-delete-old-versions t)
|
|
28 |
(setq auto-package-update-hide-results t)
|
7f1841
|
29 |
(setq auto-package-update-interval 7)
|
JG |
30 |
(setq auto-package-update-at-time "03:00")
|
990949
|
31 |
(auto-package-update-maybe))
|
C |
32 |
|
|
33 |
;; diminish
|
0c72fd
|
34 |
(use-package diminish)
|
990949
|
35 |
|
C |
36 |
;; redirect to org config file
|
|
37 |
(when (file-readable-p "~/.emacs.d/config.org")
|
|
38 |
(org-babel-load-file "~/.emacs.d/config.org"))
|
bf794a
|
39 |
(put 'upcase-region 'disabled nil)
|
JG |
40 |
(put 'downcase-region 'disabled nil)
|
be9cff
|
41 |
(put 'list-timers 'disabled nil)
|