emacs: fix dired error on darwin
Alan Pearce alan@alanpearce.eu
Sat, 30 Nov 2024 09:48:22 +0100
1 files changed, 3 insertions(+), 4 deletions(-)
jump to
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -197,12 +197,11 @@ }; }; extraConfig = '' (with-eval-after-load 'editorconfig - (defvar editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig")) + (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig")) '' + lib.optionalString stdenv.isDarwin '' - (with-eval-after-load 'files - (defvar insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls")) (with-eval-after-load 'dired - (defvar dired-use-ls-dired t)) + (setq insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls" + dired-use-ls-dired t)) ''; }; home.packages = with pkgs; [