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

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

RE: how to load code conditional on uid


From: Drew Adams
Subject: RE: how to load code conditional on uid
Date: Fri, 11 Nov 2011 06:44:23 -0800

> Can anyone shoe an example making the loading of specific code,
> conditional on the users ID?
> 
> if you are specific uid; then ## load theses paths
>   (add-to-list 'load-path  "/usr/local/src/vcs/cvs/bbdb") 
>   (add-to-list 'load-path  "/usr/local/src/vcs/cvs/bbdb/lisp") 

(when (= me (user-uid)) ; ME = your UID
  (add-to-list 'load-path ...)
  (add-to-list 'load-path ...))

See (elisp) `User Identification'.




reply via email to

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