Move emacs dir from thoom-emacs/ to emacs/

This commit is contained in:
2024-10-03 14:45:33 -07:00
parent 8fdb6dca82
commit da83c7673a
8 changed files with 6 additions and 5 deletions

View File

@@ -1,8 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with config.lib.file; with config.lib.file;
let dotdir = "${config.home.homeDirectory}/.dotfiles"; let emacsWithPackages = (pkgs.emacsPackagesFor pkgs.emacs29).emacsWithPackages;
isOnMac = pkgs.stdenv.hostPlatform.isDarwin;
emacsWithPackages = (pkgs.emacsPackagesFor pkgs.emacs29).emacsWithPackages;
aspell = (pkgs.aspellWithDicts (d: [d.en])); aspell = (pkgs.aspellWithDicts (d: [d.en]));
in in
{ {
@@ -15,12 +13,15 @@ in
emacs-lsp-booster emacs-lsp-booster
aspell aspell
]; ];
# Macs need coreutils for dired to work
macPackages = basePackages ++ [ coreutils ]; macPackages = basePackages ++ [ coreutils ];
in in
if isOnMac then macPackages else basePackages; if pkgs.stdenv.hostPlatform.isDarwin
then macPackages else basePackages;
xdg.configFile = { xdg.configFile = {
"emacs".source = mkOutOfStoreSymlink "${dotdir}/thoom-emacs"; "emacs".source = mkOutOfStoreSymlink
"${config.home.homeDirectory}/.dotfiles/emacs";
}; };
# The aspell wrapper created by aspellWithDicts only wraps the # The aspell wrapper created by aspellWithDicts only wraps the