~magic_rb/website

1c13d31cb801243940b7bb13a6c996007daeb5ab — Magic_RB 5 months ago 8ad68d6
Fix mode loading

Signed-off-by: Magic_RB <magic_rb@redalder.org>
1 files changed, 10 insertions(+), 9 deletions(-)

M flake.nix
M flake.nix => flake.nix +10 -9
@@ 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)