-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.el
39 lines (35 loc) · 1.4 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;; -*- lexical-binding: t -*-
(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))
(push "lib" straight-default-files-directive)
(straight-use-package 'use-package)
;; replace some package.el functions
(use-package package
:defer t
:straight nil
:config
(defun package-installed-p (package &optional min-version)
(when (not (or (stringp package) (symbolp package) (package-desc-p package)))
(signal 'bad-argument-types `(package ,(type-of package))))
(let* ((key (cond ((stringp package) package)
((symbolp package) (format "%s" package))
((package-desc-p package) (format "%s" (package-desc-name package)))))
(plist (gethash key straight--recipe-cache)))
(plist-get plist :local-repo))))
(require 'bind-key)
(use-package etoile
:straight (etoile :type git
:host github
:repo "jsalzbergedu/etoile-emacs"
:files ("etoile-emacs/*.el"))
:demand t)