mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-22 08:48:29 +02:00
feat: emacs - readable cli args, terminal only
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user