aboutsummaryrefslogtreecommitdiff
path: root/substrate.el
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-01-12 11:36:55 +0000
committerGene Pasquet <dev@etenil.net>2026-01-12 11:36:55 +0000
commit3f2508b92a38d8482b7b64939d744e498cdb9da3 (patch)
tree64f8a0375e56d42d6ff6b070df4e614e179ea7aa /substrate.el
parent17da5213d61734b7994f186d0bb9566d7112ddcd (diff)
Simplify
Diffstat (limited to 'substrate.el')
-rw-r--r--substrate.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/substrate.el b/substrate.el
index 9c93890..092359c 100644
--- a/substrate.el
+++ b/substrate.el
@@ -101,11 +101,6 @@
;; Package initialization
;;
- ;; Set up package and enable melpa
- (require 'package)
- (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
- (package-initialize)
-
;; Boostrap straight.el
(defvar bootstrap-version)
(let ((bootstrap-file
@@ -122,6 +117,7 @@
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
+ (straight-use-package 'use-package)
(setq straight-use-package-by-default t)
(setopt initial-major-mode 'fundamental-mode) ; default mode for the *scratch* buffer
@@ -174,14 +170,18 @@ If the new path's directories does not exist, create them."
;; which-key: shows a popup of available keybindings when typing a long key
;; sequence (e.g. C-x ...)
- (when substrate-enable-which-key
- (straight-use-package 'which-key)
+ (use-package which-key
+ :if substrate-enable-which-key
+ :config
(which-key-mode))
- (when substrate-enable-evil
+ (use-package evil
+ :if substrate-enable-evil
+ :init
(setq evil-respect-visual-line-mode t)
(setq evil-undo-system 'undo-redo)
- (straight-use-package 'evil)
+
+ :config
(evil-mode)
;; If you use Magit, start editing in insert state
@@ -283,9 +283,9 @@ If the new path's directories does not exist, create them."
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (when substrate-configure-theme
- (straight-use-package 'challenger-deep-theme)
- (substrate-set-theme 'challenger-deep))
+ (use-package evangelion-theme
+ :if substrate-configure-theme
+ :config (substrate-set-theme 'evangelion))
;;; Relegate automatic custom variables to their own file.