Replace straight.el with nix
This commit is contained in:
parent
e80b231881
commit
1f9c5f8980
5 changed files with 190 additions and 23 deletions
25
init.el
Normal file → Executable file
25
init.el
Normal file → Executable file
|
|
@ -47,26 +47,8 @@
|
|||
(add-hook 'lisp-mode-hook 'disable-tabs)
|
||||
(add-hook 'emacs-lisp-mode-hook 'disable-tabs)
|
||||
|
||||
;;;; Packages (straight.el)
|
||||
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||
(bootstrap-version 6))
|
||||
(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))
|
||||
|
||||
(setq straight-disable-native-compile t)
|
||||
|
||||
;; Use-Package
|
||||
(straight-use-package 'use-package)
|
||||
(setq straight-use-package-by-default t)
|
||||
;; Packages
|
||||
(require 'use-package)
|
||||
|
||||
;; Evil (Vim Emulation)
|
||||
(use-package evil
|
||||
|
|
@ -118,8 +100,7 @@
|
|||
(add-hook 'prog-mode-hook #'ws-butler-mode))
|
||||
|
||||
;; Code folding
|
||||
(use-package ts-fold
|
||||
:straight (ts-fold :type git :host github :repo "emacs-tree-sitter/ts-fold"))
|
||||
(use-package ts-fold)
|
||||
|
||||
;; Markdown
|
||||
(use-package markdown-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue