diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-25 19:15:37 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-25 19:15:37 +0200 |
commit | c33ff191110ae2505334792952e0ee551e06698f (patch) | |
tree | d090aee5fc5a557c86434843ab7fb8cc5cde9c0d | |
parent | 4abab142a54a41f92160b2daf8c72b149947110e (diff) | |
download | utils-c33ff191110ae2505334792952e0ee551e06698f.tar utils-c33ff191110ae2505334792952e0ee551e06698f.zip |
Added emacsclient wrappers
-rwxr-xr-x | dmemu | 4 | ||||
-rwxr-xr-x | e | 7 | ||||
-rwxr-xr-x | edit | 7 |
3 files changed, 16 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/bin/bash -PRIORITY_FACTOR=9/10 -BASE_PRIORITY=1000 +PRIORITY_FACTOR=99/100 +BASE_PRIORITY=10000 SAVE_FILE="$HOME/.dmemu" @@ -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 @@ -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 |