-;; straight.el
-
-;; Main engine start...
-
-(setq straight-repository-branch "develop"
- straight-check-for-modifications '(check-on-save find-when-checking))
-
-(defun b/bootstrap-straight ()
- (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)))
-
-;; Solid rocket booster ignition...
-
-(b/bootstrap-straight)
-
-;; We have lift off!
-
-(setq straight-use-package-by-default t)
-
-(defmacro use-feature (name &rest args)
- "Like `use-package', but with `straight-use-package-by-default' disabled."
- (declare (indent 1))
- `(use-package ,name
- :straight nil
- ,@args))
-
-(with-eval-after-load 'use-package-core
- (let ((upflk (car use-package-font-lock-keywords)))
- (font-lock-add-keywords
- 'emacs-lisp-mode
- `((,(replace-regexp-in-string
- "use-package" "use-feature"
- (car upflk))
- ,@(cdr upflk))))))
-
-(with-eval-after-load 'recentf
- (add-to-list 'recentf-exclude
- (expand-file-name "~/.emacs.d/straight/build/")))
-
-(defun b/reload-init ()
- "Reload `user-init-file'."
- (interactive)
- (setq b/before-user-init-time (current-time)
- b/file-name-handler-alist file-name-handler-alist)
- (load user-init-file nil 'nomessage)
- (b/post-init))