-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP partly add straight init to pin exact versions, use conda
- Loading branch information
1 parent
7a7b1e9
commit a52eac1
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.cask | ||
*.elc | ||
.emacs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |