Skip to content

Instantly share code, notes, and snippets.

@markhepburn
Created September 27, 2009 01:13
Show Gist options
  • Save markhepburn/194537 to your computer and use it in GitHub Desktop.
Save markhepburn/194537 to your computer and use it in GitHub Desktop.
(defvar *mh/lisp-base* (file-name-directory (file-truename user-init-file))
"Base code directory; contains free-standing code and
subdirectories of other projects. Defaults to the directory
containing the user's initialisation file (including following
symlinks).")
(add-to-list 'load-path *mh/lisp-base*)
;;; site-specific customisations; for now, assume that this can be
;;; done by platform, since it's linux at work, OSX at home. Just
;;; name the file the same as is reported by system-type (#'load will
;;; stick the ".el" on the end automatically).
(load (subst-char-in-string ?/ ?- (symbol-name system-type))
t) ; no error if it doesn't exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment