| | |
| | | (setq custom-file "~/.emacs.d/custom.el")
|
| | | (load custom-file 'noerror)
|
| | |
|
| | | ;; Repos
|
| | | (require 'package)
|
| | | (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
|
| | | ("nongnu" . "https://elpa.nongnu.org/nongnu/")
|
| | | ("melpa" . "https://melpa.org/packages/")))
|
| | | (package-initialize)
|
| | |
|
| | | ;; use-package
|
| | | (unless (package-installed-p 'use-package)
|
| | | (package-refresh-contents)
|
| | | (package-install 'use-package))
|
| | |
|
| | | (eval-when-compile
|
| | | (require 'use-package))
|
| | | ;; Load package manager
|
| | | (setq package-manager 'straight)
|
| | | (load "~/.emacs.d/package-manager.el" `noerror)
|
| | |
|
| | | ;; 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))
|
| | | (when (eq package-manager 'package)
|
| | | (use-package auto-package-update
|
| | | :ensure t
|
| | | :config
|
| | | (setq auto-package-update-delete-old-versions t)
|
| | | (setq auto-package-update-hide-results t)
|
| | | (setq auto-package-update-interval 7)
|
| | | (setq auto-package-update-at-time "03:00")
|
| | | (auto-package-update-maybe)))
|
| | |
|
| | | ;; diminish
|
| | | (use-package diminish
|
| | | :ensure t)
|
| | | (use-package diminish)
|
| | |
|
| | | ;; org-mode
|
| | | (use-package org)
|
| | |
|
| | | ;; redirect to org config file
|
| | | (when (file-readable-p "~/.emacs.d/config.org")
|