;; Set file for custom changes
|
(setq custom-file "~/.emacs.d/custom.el")
|
(load custom-file 'noerror)
|
|
;; Repos
|
(require 'package)
|
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
|
("melpa" . "https://melpa.org/packages/")
|
("org" . "https://orgmode.org/elpa/")))
|
(package-initialize)
|
|
;; use-package
|
(unless (package-installed-p 'use-package)
|
(package-refresh-contents)
|
(package-install 'use-package))
|
|
(eval-when-compile
|
(require 'use-package))
|
|
;; auto-package-update
|
(use-package auto-package-update
|
:ensure t
|
:config
|
(setq auto-package-update-delete-old-versions t)
|
(setq auto-package-update-hide-results t)
|
(auto-package-update-maybe))
|
|
;; diminish
|
(use-package diminish
|
:ensure t)
|
|
;; redirect to org config file
|
(when (file-readable-p "~/.emacs.d/config.org")
|
(org-babel-load-file "~/.emacs.d/config.org"))
|
(put 'upcase-region 'disabled nil)
|
(put 'downcase-region 'disabled nil)
|