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: Christopher Schmidt
Subject: Re: Customising .init.el for root user
Date: Fri, 21 Jun 2013 14:18:51 +0100 (BST)

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



reply via email to

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