all repos — nixfiles @ 9f8df7e7491d13fd6a2c0807930414b14791be1b

System and user configuration, managed by nix and home-manager

emacs: patch apheleia to use prettierd
Alan Pearce alan@alanpearce.eu
Sat, 11 May 2024 17:50:35 +0200
commit

9f8df7e7491d13fd6a2c0807930414b14791be1b

parent

1d2e714a793809757cd3deda5de9ef179805ebdb

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -155,6 +155,15 @@ wgrep-ag         ws-butler
         which-key
       ]);
+    overrides = self: super: rec {
+      apheleia = self.melpaPackages.apheleia.overrideAttrs
+        (old: {
+          patchPhase = ''
+            substituteInPlace apheleia-formatters.el \
+              --replace-fail '"prettier"' '"prettierd"'
+          '';
+        });
+    };
     extraConfig = ''
       (with-eval-after-load 'editorconfig
         (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))