Move emacs dir from thoom-emacs/ to emacs/
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user