mirror of
https://git.sr.ht/~magic_rb/website
synced 2024-11-22 00:04:20 +01:00
Fix mode loading
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
8ad68d6c4c
commit
1c13d31cb8
19
flake.nix
19
flake.nix
|
@ -48,12 +48,11 @@
|
|||
"modus-themes"
|
||||
"org-thtml"
|
||||
"emacs-htmlize"
|
||||
"magit"
|
||||
"web-mode"
|
||||
"hcl-mode"
|
||||
"modus-themes"
|
||||
"yaml-mode"
|
||||
"nix-mode"
|
||||
"magit"
|
||||
"compat"
|
||||
"dash"
|
||||
"s-el"
|
||||
|
@ -63,11 +62,18 @@
|
|||
];
|
||||
loadPackages = pkgs:
|
||||
pkgs.writeText "packages.el"
|
||||
(concatMapStringsSep "\n" (x: ''
|
||||
((concatMapStringsSep "\n" (x: ''
|
||||
(if (file-exists-p "${inputs.${x}}/lisp")
|
||||
(add-to-list 'load-path "${inputs.${x}}/lisp")
|
||||
(add-to-list 'load-path "${inputs.${x}}"))
|
||||
'') packages);
|
||||
'') packages)
|
||||
+
|
||||
"\n"
|
||||
+
|
||||
(concatMapStringsSep "\n" (x: ''
|
||||
(when (string-match-p "^.*-mode$" "${x}")
|
||||
(require '${x}))
|
||||
'') packages));
|
||||
site = pkgs: which:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = which;
|
||||
|
@ -133,11 +139,6 @@
|
|||
''
|
||||
(load-file "${loadPackages pkgs}")
|
||||
|
||||
(require 'nix-mode)
|
||||
(require 'web-mode)
|
||||
(require 'hcl-mode)
|
||||
(require 'yaml-mode)
|
||||
|
||||
(require 'org)
|
||||
(require 'ox)
|
||||
(require 'ox-html)
|
||||
|
|
Loading…
Reference in a new issue