Files
.emacs.d/core/siren-core-init.el
Jim Myhrberg 0375cd0328 Ensure module names cannot collide with core setup files
The core setup files for Emacs Siren which lives in the core directory
followed a `siren-*.el` naming convention, which is the same as the
naming convention for modules.

This means that the `modules/core/siren-packages.el` module for adding
packages for Emacs package development, was not being loaded due to it's
name conflicting with `core/siren-packages.el` which sets up and
configures the packaging system.

So all files under the root `core` directory now follow a
`siren-core-*.el` naming scheme, meaning modules should no longer
conflict with core files.
2019-08-17 17:00:35 +01:00

66 lines
1.7 KiB
EmacsLisp

;;; siren-core-init.el --- jimeh's Emacs Siren: Initialize all the things
;;; Commentary:
;; Initialize and start loading Emacs Siren config.
;;; Code:
;; Display the total loading time in the minibuffer
(defun display-startup-echo-area-message ()
"Display startup echo area message."
(message "Siren initialized in %s" (emacs-init-time)))
(message "Siren is powering up... Be patient, Master %s!"
(getenv (if (equal system-type 'windows-nt) "USERNAME" "USER")))
;; Check Emacs version.
(when (version< emacs-version "26.1")
(error "Siren requires at least GNU Emacs 26.1, but you're running %s"
emacs-version))
;; Setup basic paths.
(setq siren-core-dir (file-name-directory load-file-name))
(setq siren-dir (expand-file-name ".." siren-core-dir))
(add-to-list 'load-path siren-core-dir)
;; Configure siren-cache-dir
(setq siren-cache-dir (expand-file-name "cache" siren-dir))
(unless (file-exists-p siren-cache-dir)
(make-directory siren-cache-dir))
;; Core stuff
(require 'siren-core-custom)
(require 'siren-core-funcs)
;; Ensure vendor directory load-paths are configured
(require 'siren-core-vendor)
;; Continue core stuff
(require 'siren-core-packages)
(require 'siren-core-env)
(require 'siren-core-ui)
(require 'siren-core-editor)
;; OSX specific
(when (eq system-type 'darwin)
(require 'siren-core-osx))
;; Linux specific
(when (eq system-type 'gnu/linux)
(require 'siren-core-linux))
;; Config changes made through the customize UI will be store here
(setq custom-file (expand-file-name "custom.el" siren-dir))
(load-file custom-file)
;; The modules
(require 'siren-core-modules)
;; The theme
(require 'siren-core-theme)
(provide 'siren-core-init)
;;; siren-core-init.el ends here