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

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

how to load code conditional on uid


From: Harry Putnam
Subject: how to load code conditional on uid
Date: Fri, 11 Nov 2011 07:33:58 -0600
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Can anyone shoe an example making the loading of specific code,
conditional on the users ID?

For an example, maybe something like a list of load path additions,
perhaps the equivalent of what you would do with shell type coding,
only in elisp:

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") 

fi




reply via email to

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