Here is my try:
(if (eq system-type 'gnu/linux)
(load "/usr/share/emacs/site-lisp/site-gentoo")
(require 'site-gentoo))
But anyways I receive error on windows :
/.emacs':
File error: Cannot open load file, site-gentoo
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your problem is in the way you use
if: its documentation says it’sI.e. your
(require 'site-gentoo)gets executed if and only if it’s not a GNU/Linux system.Use
wheninstead, that should do what you intend.Also, there should actually no need to use both
loadandrequire, their usage should have the same result. The differences are mostly thatrequirewill search theload-pathand don’t load something again that was already loaded before.