[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sudo emacsclient
From: |
Andreas Politz |
Subject: |
Re: sudo emacsclient |
Date: |
Mon, 26 Oct 2009 21:55:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Richard Riley <rileyrgdev@gmail.com> writes:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> On 2009-10-26 19:30 (+0100), Richard Riley wrote:
>>
>>> I use this small script to start emacs :-
>>>
>>> ,----
>>> | #!/bin/bash
>>> | # edit
>>> | export GDK_NATIVE_WINDOWS=1
>>> | emacsclient --alternate-editor="" -c $@
>>> `----
>>
>> You probably won't need that Bash lying in the background so I would
>> suggest using "exec" there to replace the script shell. Also, quoting
>> "$@" is a good idea so it will quote each expanded positional argument.
>> Like this:
>>
>> exec emacsclient --alternate-editor="" -c "$@"
>>
>
> Makes sense. Thanks.
What is the *magic* export good for ?
-ap