File tree 3 files changed +41
-57
lines changed
modules/common/home-manager/profiles 3 files changed +41
-57
lines changed Original file line number Diff line number Diff line change 28
28
29
29
programs . emacs . extraPackages = epkgs : [ epkgs . treesit-grammars . with-all-grammars ] ;
30
30
31
- programs . emacs . overrides =
32
- final : prev :
33
- let
34
- inherit ( final ) trivialBuild ;
35
- in
36
- {
37
-
38
- copilot = trivialBuild {
39
- pname = "copilot" ;
40
- version = "0-unstable-2024-09-25" ;
41
- src = pkgs . fetchFromGitHub {
42
- owner = "zerolfx" ;
43
- repo = "copilot.el" ;
44
- rev = "b5878d6a8c741138b5efbf4fe1c594f3fd69dbdd" ;
45
- sha256 = "sha256-02ywlMPku1FIritZjjtxbQW6MmPvSwmRCrudYsUb8bU=" ;
46
- } ;
47
- packageRequires = with final ; [
48
- dash
49
- editorconfig
50
- f
51
- jsonrpc
52
- s
53
- ] ;
54
- postInstall = ''
55
- cp -r $src $LISPDIR
56
- '' ;
57
- } ;
58
-
59
- eglot = null ; # use built-in package
60
- } ;
31
+ programs . emacs . overrides = _ : _ : {
32
+ eglot = null ; # use built-in package
33
+ } ;
61
34
62
35
programs . emacs . init = {
63
36
enable = true ;
300
273
'' ;
301
274
} ;
302
275
276
+ copilot-chat . enable = true ;
277
+
303
278
csv-mode . enable = true ;
304
279
305
280
edit-indirect . enable = true ;
Original file line number Diff line number Diff line change 1
- { config , lib , ... } :
1
+ {
2
+ config ,
3
+ lib ,
4
+ pkgs ,
5
+ ...
6
+ } :
2
7
{
3
8
config = lib . mkIf config . profiles . base . enable {
4
9
10
+ programs . emacs . overrides = self : _ : {
11
+ # org-mode with upgraded org-latex-preview
12
+ # https://code.tecosaur.net/tec/org-mode
13
+ # TODO: remove once changes are merged
14
+ org =
15
+ let
16
+ rev = "cd2269ddb64bda7203acf2ee2e26188237a578ea" ;
17
+ in
18
+ self . trivialBuild {
19
+ pname = "org" ;
20
+ version = "9.7.26+${ builtins . substring 0 7 rev } " ;
21
+ src = pkgs . fetchgit {
22
+ name = "org-src" ;
23
+ url = "https://code.tecosaur.net/tec/org-mode.git" ;
24
+ inherit rev ;
25
+ hash = "sha256-mw11v3r+6/xCTaYht/hD+/Nhd+gIcOmAbtEJUGMiphA=" ;
26
+ } ;
27
+ installPhase = ''
28
+ runHook preInstall
29
+
30
+ LISPDIR=$out/share/emacs/site-lisp
31
+ install -d $LISPDIR
32
+ install lisp/*.el lisp/*.elc $LISPDIR
33
+
34
+ runHook postInstall
35
+ '' ;
36
+ } ;
37
+ } ;
38
+
5
39
programs . emacs . init . usePackage = {
6
40
7
41
frames-only-mode . config = lib . mkBefore ''
90
124
'' ;
91
125
} ;
92
126
93
- org-fragtog = {
94
- enable = true ;
95
- hook = [ ''(org-mode . org-fragtog-mode)'' ] ;
96
- } ;
97
-
98
127
org-protocol . enable = true ;
99
128
100
129
org-roam = {
Original file line number Diff line number Diff line change 85
85
86
86
programs . texlive = {
87
87
enable = true ;
88
- extraPackages = tpkgs : {
89
- inherit ( tpkgs )
90
- scheme-basic
91
-
92
- # packages required for Org Mode latex export (see org-latex-default-packages-alist documentation)
93
- dvipng
94
- dvisvgm
95
- wrapfig
96
- ulem
97
- amsmath
98
- capt-of
99
- hyperref
100
-
101
- # not mentioned but required
102
- minted
103
- newfloat
104
-
105
- # not packaged nixpkgs.texlive?
106
- # inputenc fontenc graphicx longtable rotating amssymb
107
- ;
108
- } ;
88
+ extraPackages = tpkgs : { inherit ( tpkgs ) scheme-full ; } ;
109
89
} ;
110
90
111
91
tools = {
You can’t perform that action at this time.
0 commit comments