Fix use-package and straight interaction loading and mathpix recipe
This commit is contained in:
parent
8316896f09
commit
f613773b9c
2 changed files with 17 additions and 107 deletions
34
init.el
34
init.el
|
@ -74,6 +74,22 @@
|
|||
(let ((fill-column (point-max)))
|
||||
(fill-region (region-beginning) (region-end) nil)))
|
||||
|
||||
;; Straight.el setup
|
||||
(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))
|
||||
|
||||
(straight-use-package 'use-package)
|
||||
|
||||
;;; Built-in packages
|
||||
(use-package paren
|
||||
:config
|
||||
|
@ -94,22 +110,6 @@
|
|||
;; don't muck with special buffers
|
||||
(setq uniquify-ignore-buffers-re "^\\*"))
|
||||
|
||||
;; Straight.el setup
|
||||
(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))
|
||||
|
||||
(straight-use-package 'use-package)
|
||||
|
||||
;; Theme
|
||||
(use-package base16-theme
|
||||
:straight t
|
||||
|
@ -510,7 +510,7 @@
|
|||
(setq twittering-reverse-mode nil))
|
||||
|
||||
(use-package mathpix.el
|
||||
:load-path "site-lisp"
|
||||
:straight (:host github :repo "jethrokuan/mathpix.el")
|
||||
;; You also need to configure `mathpix-app-id` and
|
||||
;; `mathpix-app-key`, for instance in secrets.el
|
||||
:bind
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue