feat: emacs - readable cli args, terminal only

This commit is contained in:
Ryan Yin
2024-01-04 10:39:32 +08:00
parent f65ecdd821
commit 09c73d9f5e

View File

@@ -19,9 +19,7 @@ with lib; let
export PATH="${config.xdg.configHome}/emacs/bin:$PATH" export PATH="${config.xdg.configHome}/emacs/bin:$PATH"
''; '';
shellAliases = { shellAliases = {
e = "emacsclient -c"; e = "emacsclient --create-frame --tty";
ediff = ''emacsclient -c -nw --eval "(ediff-files \"$1\" \"$2\")"'';
eman = ''emacsclient -c -nw --eval "(switch-to-buffer (man \"$1\"))"'';
}; };
in { in {
options.modules.editors.emacs = { options.modules.editors.emacs = {
@@ -87,7 +85,7 @@ in {
})) }))
(mkIf pkgs.stdenv.isDarwin ( (mkIf pkgs.stdenv.isDarwin (
let emacsPkg = pkgs.emacs29-macport; in let emacsPkg = pkgs.emacs29-nox; in
{ {
home.packages = [emacsPkg]; home.packages = [emacsPkg];
launchd.enable = true; launchd.enable = true;