feat: emacs daemon

This commit is contained in:
Ryan Yin
2024-01-03 19:09:26 +08:00
parent 59d9601f49
commit f68fe49720
4 changed files with 92 additions and 53 deletions

View File

@@ -167,3 +167,16 @@ test-emacs:
test-emacs-clean:
rm -rf $"($env.HOME)/.config/doom/"
emacs-plist-path := "~/Library/LaunchAgents/org.nix-community.home.emacs.plist"
reload-emacs-cmd := if os() == "macos" {
"launchctl unload " + emacs-plist-path
+ "\n"
+ "launchctl load " + emacs-plist-path
} else {
"systemctl --user restart emacs.service"
}
reload-emacs:
{{reload-emacs-cmd}}