mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 17:28:33 +02:00
feat: emacs daemon
This commit is contained in:
13
Justfile
13
Justfile
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user