Skip to content

Commit

Permalink
WIP partly add straight init to pin exact versions, use conda
Browse files Browse the repository at this point in the history
  • Loading branch information
ndwarshuis committed Jun 19, 2024
1 parent 7a7b1e9 commit a52eac1
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.cask
*.elc
.emacs
46 changes: 46 additions & 0 deletions dev/init.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
(defun fix-null-term (s)
"Fix string S with extra wonky null terminators.
For whatever reason this affects certain strings in the conda
package for Emacs. These look like `blabla\0\0\0\0\0\0\0`."
(declare (pure t) (side-effect-free t))
(save-match-data
(if (string-match "\0+" s)
(replace-match "" t t s)
s)))

;; HACK stuff won't install unless this string is fixed
(if (< (round (string-to-number emacs-version)) 29)
(setq Info-default-directory-list
(cons
(fix-null-term (car Info-default-directory-list))
(cdr Info-default-directory-list)))
(setq configure-info-directory (fix-null-term configure-info-directory)))

(setq package-enable-at-startup nil)

(setq user-emacs-directory
(file-name-concat (expand-file-name ".emacs") emacs-version))

(defvar bootstrap-version)

(let ((bootstrap-file
(file-name-concat
user-emacs-directory
"straight/repos/straight.el/bootstrap.el"))
(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))

(straight-use-package 's)
(straight-use-package 'dash)
(straight-use-package 'buttercup)
(straight-use-package 'lispy)

;; (straight-use-package 'org)
5 changes: 5 additions & 0 deletions env-28.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: org-ml-28.1
channels:
- conda-forge
dependencies:
- emacs=28.1
5 changes: 5 additions & 0 deletions env-28.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: org-ml-28.2
channels:
- conda-forge
dependencies:
- emacs=28.2
5 changes: 5 additions & 0 deletions env-29.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: org-ml-29.1
channels:
- conda-forge
dependencies:
- emacs=29.1
5 changes: 5 additions & 0 deletions env-29.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: org-ml-29.3
channels:
- conda-forge
dependencies:
- emacs=29.3

0 comments on commit a52eac1

Please sign in to comment.