help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customising .init.el for root user


From: J. David Boyd
Subject: Re: Customising .init.el for root user
Date: Fri, 21 Jun 2013 10:55:09 -0400
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin)

Christopher Schmidt <christopher@ch.ristopher.com> writes:

> david@adboyd.com (J. David Boyd) writes:
>> (setq whoami-string
>>       (substring
>>        (shell-command-to-string "whoami")
>>       0 -1))
>>
>>
>>
>> Then you could do
>>
>> (when (string= (whoami-string) "root")
>>       ..run some customisations...
>> )
>
>     (eq (user-uid) 0)
>
>         Christopher


Then root is always user id 0?  Never knew that, nor took the time to check
ever.

Thanks for the info...

Dave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]