Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
806 B

7 years ago
7 years ago
7 years ago
  1. (setq custom-file "~/.emacs.d/custom.el")
  2. (load custom-file 'noerror)
  3. (require 'package)
  4. (when (version< emacs-version "26.2")
  5. (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
  6. (setq package-archives '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
  7. ("MELPA Stable" . "https://stable.melpa.org/packages/")
  8. ("MELPA" . "https://melpa.org/packages/"))
  9. package-archive-priorities '(("MELPA Stable" . 10)
  10. ("GNU ELPA" . 5)
  11. ("MELPA" . 0)))
  12. (package-initialize)
  13. (when (not package-archive-contents)
  14. (package-refresh-contents))
  15. (mapc #'(lambda (package)
  16. (unless (package-installed-p package)
  17. (package-install package)))
  18. package-selected-packages)
  19. (require 'org)
  20. (org-babel-load-file
  21. (expand-file-name "settings.org"
  22. user-emacs-directory))