forked from jamescherti/minimal-emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost-init.el
More file actions
26 lines (21 loc) · 973 Bytes
/
post-init.el
File metadata and controls
26 lines (21 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;;; post-init.el --- Entry Point -*- lexical-binding: t; -*-
;; Ensure all necessary use-package variables and functions are loaded
(require 'use-package)
;; -- Load Path Setup --
(defconst my-lisp-dir (expand-file-name "lisp" minimal-emacs-user-directory))
;; Sanity Check: Ensure the directory actually exists
(unless (file-directory-p my-lisp-dir)
(error "CRITICAL: Directory '%s' is missing. Create it and move init-*.el files there." my-lisp-dir))
(add-to-list 'load-path my-lisp-dir)
;; -- Module Loader --
;; Use a simple catch to print better errors if a specific module fails
(condition-case err
(progn
(require 'init-pkg) ; Bootstrap Straight & Use-package & General
(require 'init-core) ; Better defaults
(require 'init-keys) ; Evil Mode
(require 'init-ui) ; Theme & Fonts
(require 'init-nav) ; Navigation
(require 'init-dev)) ; Coding tools
(error
(message "Failed to load config module: %s" err)))