mirror of https://github.com/Chizi123/.emacs.d.git

Joel Grunbaum
2022-01-01 0c72fdb59350d27a24ecb6ad1d3bebb17a69dd69
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/")
JG 8              ("nongnu"  . "https://elpa.nongnu.org/nongnu/")
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))
16
17 (eval-when-compile
18   (require 'use-package))
0c72fd 19 (require 'use-package-ensure)
JG 20 (setq use-package-always-ensure t)
990949 21
C 22 ;; auto-package-update
23 (use-package auto-package-update
24   :ensure t
25   :config
26   (setq auto-package-update-delete-old-versions t)
27   (setq auto-package-update-hide-results t)
28   (auto-package-update-maybe))
29
30 ;; diminish
0c72fd 31 (use-package diminish)
990949 32
C 33 ;; redirect to org config file
34 (when (file-readable-p "~/.emacs.d/config.org")
35   (org-babel-load-file "~/.emacs.d/config.org"))
bf794a 36 (put 'upcase-region 'disabled nil)
JG 37 (put 'downcase-region 'disabled nil)
be9cff 38 (put 'list-timers 'disabled nil)