summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdmemu4
-rwxr-xr-xe7
-rwxr-xr-xedit7
3 files changed, 16 insertions, 2 deletions
diff --git a/dmemu b/dmemu
index d2b4c36..7233c0b 100755
--- a/dmemu
+++ b/dmemu
@@ -1,7 +1,7 @@
#!/bin/bash
-PRIORITY_FACTOR=9/10
-BASE_PRIORITY=1000
+PRIORITY_FACTOR=99/100
+BASE_PRIORITY=10000
SAVE_FILE="$HOME/.dmemu"
diff --git a/e b/e
new file mode 100755
index 0000000..c214982
--- /dev/null
+++ b/e
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $(id -u) -eq 0 ]; then
+ exec sudo -u neoraider emacsclient -n /sudo::$(readlink -f $1)
+else
+ exec emacsclient -n $(readlink -f $1)
+fi
diff --git a/edit b/edit
new file mode 100755
index 0000000..de514c1
--- /dev/null
+++ b/edit
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $(id -u) -eq 0 ]; then
+ exec sudo -u neoraider emacsclient -nw /sudo::$(readlink -f $1)
+else
+ exec emacsclient -nw $(readlink -f $1)
+fi