Remove emacs-sync-config.sh

Go back to simple git command in hyprland extraConfig
This commit is contained in:
Evie Litherland-Smith 2024-02-17 19:10:22 +00:00
parent c9b4393a29
commit 901fe1c661
3 changed files with 2 additions and 17 deletions

View file

@ -327,15 +327,10 @@
"SUPER, mouse:273, resizewindow"
];
};
extraConfig = let
emacs-sync = let
name = "emacs-sync-config";
script = builtins.readFile ../scripts/emacs-sync-config.sh;
in "${pkgs.writeShellScriptBin name script}/bin/${name}";
in ''
extraConfig = ''
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
exec-once = systemctl --user restart "xdg-desktop-portal*"
exec-once = ${emacs-sync}
exec-once = ${pkgs.git}/bin/git -C ${config.xdg.configHome}/emacs pull --ff-only
'';
};
}

View file

@ -2,8 +2,6 @@
home.packages = [
(pkgs.writeShellScriptBin "git-sync-all"
(builtins.readFile ./git-sync-all.sh))
(pkgs.writeShellScriptBin "emacs-sync-config"
(builtins.readFile ./emacs-sync-config.sh))
(pkgs.writeShellScriptBin "rsync-local-config"
(builtins.readFile ./rsync-local-config.sh))
(pkgs.writeShellScriptBin "xdg-query-program"

View file

@ -1,8 +0,0 @@
EMACS_DIR="$HOME/.emacs.d"
EMACS_CONF_URL="https://git.xenia.me.uk/xenia/emacs"
if [ ! -d "$EMACS_DIR" ]; then
git clone "$EMACS_CONF_URL" "$EMACS_DIR"
fi
git -C "$EMACS_DIR" pull --ff-only