2023-10-23 08:52:59 +01:00
|
|
|
;;; init.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;; Initial phase.
|
|
|
|
|
|
|
|
;; Load the custom file if it exists. Among other settings, this will
|
|
|
|
;; have the list `package-selected-packages', so we need to load that
|
|
|
|
;; before adding more packages. The value of the `custom-file'
|
|
|
|
;; variable must be set appropriately, by default the value is nil.
|
|
|
|
;; This can be done here, or in the early-init.el file.
|
2023-10-24 21:18:00 +01:00
|
|
|
(setq custom-file (locate-user-emacs-file "custom.el"))
|
2023-10-23 08:52:59 +01:00
|
|
|
(when (and custom-file (file-exists-p custom-file))
|
2023-10-23 17:28:05 +01:00
|
|
|
(load custom-file nil 'nomessage))
|
2023-10-23 08:52:59 +01:00
|
|
|
|
2023-10-27 10:07:29 +01:00
|
|
|
;; Setup package-archives and priorities
|
|
|
|
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
|
|
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
|
|
|
|
|
|
|
(setq package-archive-priorities '(("gnu" . 99)
|
|
|
|
("nongnu" . 80)
|
|
|
|
("stable" . 70)
|
|
|
|
("melpa" . 0)))
|
|
|
|
|
2023-10-23 17:28:05 +01:00
|
|
|
;; Add custom modules to the `load-path'
|
|
|
|
(add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))
|
|
|
|
|
|
|
|
;; Adds crafted-emacs modules to the `load-path'
|
|
|
|
(setq crafted-emacs-home (expand-file-name "crafted-emacs" user-emacs-directory))
|
|
|
|
(add-to-list 'load-path (expand-file-name "modules" crafted-emacs-home))
|
2023-10-23 08:52:59 +01:00
|
|
|
|
|
|
|
;;; Configuration phase
|
|
|
|
|
2023-10-27 08:03:51 +01:00
|
|
|
(setq user-full-name "Evie Litherland-Smith"
|
|
|
|
user-mail-address "evie@xenia.me.uk")
|
|
|
|
|
2023-11-01 08:37:30 +00:00
|
|
|
;; Set default coding system (especially for Windows)
|
|
|
|
(set-default-coding-systems 'utf-8)
|
|
|
|
(set-terminal-coding-system 'utf-8)
|
|
|
|
(set-keyboard-coding-system 'utf-8)
|
|
|
|
|
|
|
|
(require 'custom-ui-config)
|
2023-10-27 10:31:36 +01:00
|
|
|
(require 'custom-defaults-config)
|
2023-11-01 08:37:30 +00:00
|
|
|
|
2023-10-24 08:06:35 +01:00
|
|
|
(require 'custom-email-config)
|
|
|
|
(require 'custom-feed-config)
|
|
|
|
(require 'custom-ide-config)
|
|
|
|
(require 'custom-ligatures-config)
|
2023-10-26 16:11:52 +01:00
|
|
|
(require 'custom-media-config)
|
2023-10-25 15:47:35 +01:00
|
|
|
(require 'custom-org-config)
|
2023-10-24 08:06:35 +01:00
|
|
|
(require 'custom-project-config)
|
2023-10-29 07:33:43 +00:00
|
|
|
(require 'custom-social-config)
|
2023-10-24 08:06:35 +01:00
|
|
|
|
2023-10-27 08:03:51 +01:00
|
|
|
(require 'crafted-completion-config)
|
|
|
|
(require 'crafted-ide-config)
|
|
|
|
(require 'crafted-org-config)
|
|
|
|
(require 'crafted-workspaces-config)
|
|
|
|
(require 'crafted-writing-config)
|