2024-02-15 08:18:41 +00:00
|
|
|
;;; init -- My emacs config
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;; Moving my Emacs config from separate directory
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2024-04-02 18:06:05 +01:00
|
|
|
;; Stop popups for warning messages, keep in log buffer
|
2024-04-05 13:31:58 +01:00
|
|
|
(setopt warning-minimum-level :error)
|
2024-04-02 18:06:05 +01:00
|
|
|
|
2024-04-05 15:22:48 +01:00
|
|
|
;; Configure packages archives with priority
|
|
|
|
(when (require 'package nil :noerror)
|
|
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
|
|
|
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
|
2024-02-19 07:43:02 +00:00
|
|
|
|
2024-04-05 15:22:48 +01:00
|
|
|
(setopt package-archive-priorities '(("melpa" . 10)
|
|
|
|
("stable" . 5)
|
|
|
|
("nongnu" . 5)
|
|
|
|
("gnu" . 0)))
|
|
|
|
(package-initialize))
|
2024-02-19 07:43:02 +00:00
|
|
|
|
2024-04-05 15:22:48 +01:00
|
|
|
(defvar my/config-files
|
|
|
|
(directory-files (locate-user-emacs-file "config") t ".org")
|
|
|
|
"List of literate config files to load.")
|
|
|
|
|
|
|
|
(dolist (fname my/config-files)
|
|
|
|
(unless (string-match-p (regexp-quote "#") fname)
|
|
|
|
(org-babel-load-file fname)))
|
2024-02-15 08:18:41 +00:00
|
|
|
|
|
|
|
(provide 'init)
|
|
|
|
;;; init.el ends here
|