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

Joel Grunbaum
2021-12-10 0d83949a87075f2141362ae69946ecc7fe116a3c
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))
19
20 ;; auto-package-update
21 (use-package auto-package-update
22   :ensure t
23   :config
24   (setq auto-package-update-delete-old-versions t)
25   (setq auto-package-update-hide-results t)
26   (auto-package-update-maybe))
27
28 ;; diminish
29 (use-package diminish
30   :ensure t)
31
32 ;; redirect to org config file
33 (when (file-readable-p "~/.emacs.d/config.org")
34   (org-babel-load-file "~/.emacs.d/config.org"))
bf794a 35 (put 'upcase-region 'disabled nil)
JG 36 (put 'downcase-region 'disabled nil)
be9cff 37 (put 'list-timers 'disabled nil)