mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-10 15:53:03 +03:00
scripts: let's try straight.el
This commit is contained in:
parent
83433a56af
commit
b8e3a97243
1 changed files with 19 additions and 11 deletions
|
|
@ -3,18 +3,26 @@
|
||||||
(require 'vc)
|
(require 'vc)
|
||||||
(require 'files)
|
(require 'files)
|
||||||
|
|
||||||
(setq package-user-dir (expand-file-name "./.packages"))
|
(setq byte-compile-warnings nil)
|
||||||
|
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
|
||||||
|
|
||||||
;; Initialize the package system
|
;; Initialize the package system
|
||||||
(package-initialize)
|
(defvar bootstrap-version)
|
||||||
(unless package-archive-contents
|
(let ((bootstrap-file
|
||||||
(package-refresh-contents))
|
(expand-file-name
|
||||||
|
"straight/repos/straight.el/bootstrap.el"
|
||||||
|
(or (bound-and-true-p straight-base-dir)
|
||||||
|
user-emacs-directory)))
|
||||||
|
(bootstrap-version 7))
|
||||||
|
(unless (file-exists-p bootstrap-file)
|
||||||
|
(with-current-buffer
|
||||||
|
(url-retrieve-synchronously
|
||||||
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
||||||
|
'silent 'inhibit-cookies)
|
||||||
|
(goto-char (point-max))
|
||||||
|
(eval-print-last-sexp)))
|
||||||
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
(unless (package-installed-p 'use-package)
|
(straight-use-package 'use-package)
|
||||||
(package-install 'use-package))
|
|
||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
|
|
||||||
;; Org Hugo
|
;; Org Hugo
|
||||||
|
|
@ -48,7 +56,7 @@
|
||||||
slug))
|
slug))
|
||||||
|
|
||||||
(use-package ox-hugo
|
(use-package ox-hugo
|
||||||
:ensure t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(setq org-hugo-anchor-functions '(org-hugo-get-page-or-bundle-name
|
(setq org-hugo-anchor-functions '(org-hugo-get-page-or-bundle-name
|
||||||
org-hugo-get-custom-id
|
org-hugo-get-custom-id
|
||||||
|
|
@ -59,7 +67,7 @@
|
||||||
;; Org Make TOC
|
;; Org Make TOC
|
||||||
|
|
||||||
(use-package org-make-toc
|
(use-package org-make-toc
|
||||||
:ensure t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(setq org-make-toc-link-type-fn #'org-make-toc--link-entry-org))
|
(setq org-make-toc-link-type-fn #'org-make-toc--link-entry-org))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue