about summary refs log tree commit diff
path: root/packages/lemacs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'packages/lemacs/default.nix')
-rw-r--r--packages/lemacs/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/lemacs/default.nix b/packages/lemacs/default.nix
new file mode 100644
index 0000000..bab75ea
--- /dev/null
+++ b/packages/lemacs/default.nix
@@ -0,0 +1,8 @@
+{ writeShellScriptBin, ... }:
+writeShellScriptBin "lemacs" ''
+if [ -n "$DISPLAY" ]; then
+    emacsclient -a "" -n -c "$@"
+else
+    emacsclient -a "" -c "$@"
+fi
+''