feat(emacs): add posthook to refresh the theme

Issue: #2229
This commit is contained in:
Lysec
2026-03-20 12:50:17 +01:00
parent 829dedc2d0
commit 3b2fa6a428
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -283,6 +283,10 @@ Singleton {
lines.push(`input_path = "${Quickshell.shellDir}/Assets/Templates/${app.input}"`);
const expandedPath = client.path.replace("~", homeDir) + "/themes/noctalia-theme.el";
lines.push(`output_path = "${expandedPath}"`);
if (app.postProcess) {
const postHook = escapeTomlString(app.postProcess(mode));
lines.push(`post_hook = "${postHook}"`);
}
});
}
} else {
+2 -1
View File
@@ -316,7 +316,8 @@ Singleton {
"id": "emacs",
"name": "Emacs",
"category": "editor",
"input": "emacs.el"
"input": "emacs.el",
"postProcess": () => `emacsclient -e "(load-theme 'noctalia t)"`
},
{
"id": "labwc",