Skip to content

Instantly share code, notes, and snippets.

@theironsamurai
Last active August 29, 2015 13:59
Show Gist options
  • Save theironsamurai/10752614 to your computer and use it in GitHub Desktop.
Save theironsamurai/10752614 to your computer and use it in GitHub Desktop.
Loader for Prelude Nemesis (a plugin for Emacs Prelude)
;;; nemesis-loader.el --- Adding Paths to load plugins for Prelude
;;
;; Copyright (c) 2014, Nick Horton
;; Website: SapienGames.com
;;
;; This is not a part of GNU Emacs (nor Prelude!)
;;
;;; Commentary:
;;
;; This loads anything inside of the /nemesis folder
;; which is inside your /personal folder
;; when you use Prelude and add my Nemesis "plugin".
;;; Code:
;; Tell Prelude where to look
(defvar prelude-personal-nemesis-dir
(concat prelude-personal-dir "/nemesis/"))
(let ((default-directory prelude-personal-nemesis-dir))
(normal-top-level-add-to-load-path '("."))
(normal-top-level-add-subdirs-to-load-path))
;; Example: Load Prelude-Nemesis
(add-to-list 'load-path "nemesis")
(load "nemesis.el")
;; END
(provide 'nemesis-loader)
;;; nemesis-loader.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment