-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.dir-locals.el
54 lines (53 loc) · 2.07 KB
/
.dir-locals.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;;; Directory Local Variables -*- no-byte-compile: t; -*-
;;; For more information see (info "(emacs) Directory Variables")
((nil
.
((disproject-custom-suffixes
.
(("t c" "Time-machine: Compile to Guix profile"
:command-type run
:command (lambda () (interactive)
(let ((command "\
profile=.time-machine-guix-profile
[ -e $profile ] && rm $profile
guix time-machine --channels=channels.scm -- \\
shell --development --file=guix.scm --file=guix.scm \\
--manifest=manifest.scm emacs \\
--root=$profile --search-paths"))
(if current-prefix-arg
(read-shell-command "Command: " command)
command)))
:identifier "time-machine-profile")
("t r" "Time-machine: Run Emacs"
:command-type run
:command (lambda () (interactive)
(let ((command "\
guix shell --pure --profile=.time-machine-guix-profile -- \\
emacs --no-init-file --eval \"(require 'disproject)\""))
(if current-prefix-arg
(read-shell-command "Command: " command)
command)))
:identifier "time-machine-profile")
("l c" "Latest: Compile to Guix profile"
:command-type run
:command (lambda () (interactive)
(let ((command "\
profile=.latest-guix-profile
[ -e $profile ] && rm $profile
guix shell --development --file=guix.scm --file=guix.scm \\
--manifest=manifest.scm emacs-next \\
--root=$profile --search-paths"))
(if current-prefix-arg
(read-shell-command "Command: " command)
command)))
:identifier "latest-profile")
("l r" "Latest: Run Emacs"
:command-type run
:command (lambda () (interactive)
(let ((command "\
guix shell --pure --profile=.latest-guix-profile -- \\
emacs --no-init-file --eval \"(require 'disproject)\""))
(if current-prefix-arg
(read-shell-command "Command: " command)
command)))
:identifier "latest-profile"))))))