This commit is contained in:
2026-01-19 00:52:06 +08:00
parent 3bea79854c
commit b5f2a4ce76
4 changed files with 47 additions and 1340 deletions
+2 -17
View File
@@ -23,11 +23,11 @@ in {
doomLocalDir = "${config.home.homeDirectory}/.local/share/nix-doom";
# Use emacs-pgtk for better Wayland support on Linux
# On macOS, falls back to regular emacs
# On macOS, use emacsMacport for yabai compatibility (proper AX roles)
emacs =
if pkgs.stdenv.isLinux
then pkgs.emacs-pgtk
else pkgs.emacs;
else pkgs.emacsMacport;
# Extra packages to make available (tree-sitter grammars, etc.)
# Tree-sitter grammars are not installed automatically by Doom
@@ -68,19 +68,4 @@ in {
# Ensure doom directories exist
home.file.".local/share/nix-doom/.keep".text = "";
# Shell aliases for Doom Emacs
programs.fish.shellAbbrs = lib.mkIf config.programs.fish.enable {
em = "emacsclient -c -a emacs";
et = "emacsclient -t -a 'emacs -nw'";
};
programs.zsh.shellAliases = lib.mkIf config.programs.zsh.enable {
em = "emacsclient -c -a emacs";
et = "emacsclient -t -a 'emacs -nw'";
};
programs.bash.shellAliases = lib.mkIf config.programs.bash.enable {
em = "emacsclient -c -a emacs";
et = "emacsclient -t -a 'emacs -nw'";
};
}