summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-05-11 17:50:35 +0200
committerAlan Pearce2024-05-11 17:50:35 +0200
commit9f8df7e7491d13fd6a2c0807930414b14791be1b (patch)
treec53293a3c9e8069ac888f0e5bf8e5081c4cc6736 /user
parent1d2e714a793809757cd3deda5de9ef179805ebdb (diff)
downloadnixfiles-9f8df7e7491d13fd6a2c0807930414b14791be1b.tar.lz
nixfiles-9f8df7e7491d13fd6a2c0807930414b14791be1b.tar.zst
nixfiles-9f8df7e7491d13fd6a2c0807930414b14791be1b.zip
emacs: patch apheleia to use prettierd
Diffstat (limited to 'user')
-rw-r--r--user/settings/emacs.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 71f2401f..722a7a6d 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -155,6 +155,15 @@ in
         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"))