43 lines
1.3 KiB
EmacsLisp
43 lines
1.3 KiB
EmacsLisp
|
(setq lexical-binding t)
|
||
|
(setq gc-cons-threshold 100000000)
|
||
|
|
||
|
;; Bootstrap the straight.el package manager
|
||
|
(defvar bootstrap-version)
|
||
|
(let ((bootstrap-file
|
||
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||
|
(bootstrap-version 5))
|
||
|
(unless (file-exists-p bootstrap-file)
|
||
|
(with-current-buffer
|
||
|
(url-retrieve-synchronously
|
||
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
||
|
'silent 'inhibit-cookies)
|
||
|
(goto-char (point-max))
|
||
|
(eval-print-last-sexp)))
|
||
|
(load bootstrap-file nil 'nomessage))
|
||
|
|
||
|
;; Load up use-package for subsequent configuration
|
||
|
(straight-use-package 'use-package)
|
||
|
(setq straight-use-package-by-default t)
|
||
|
|
||
|
;; Don't use this file as the custom-file
|
||
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||
|
|
||
|
;; Load config modules
|
||
|
(add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
|
||
|
(require 'init-defaults)
|
||
|
(require 'init-evil)
|
||
|
(require 'init-keybindings)
|
||
|
(require 'init-dashboard)
|
||
|
(require 'init-dotfiles)
|
||
|
(require 'init-buffers)
|
||
|
(require 'init-files)
|
||
|
(require 'init-windows)
|
||
|
(require 'init-completion)
|
||
|
(require 'init-ui)
|
||
|
(require 'init-projects)
|
||
|
(require 'init-git)
|
||
|
|
||
|
;; Load the custom file
|
||
|
(when (file-exists-p custom-file)
|
||
|
(load custom-file))
|