This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/pre-extensions.el
2013-05-06 21:20:00 -04:00

20 lines
651 B
EmacsLisp

(defvar syl:pre-extensions
'(
revive
window-numbering
))
;; load extensions
(dolist (ext syl:pre-extensions)
(add-to-list 'load-path (format "%s%s/" user-extensions-directory ext)))
;; initialize extensions
(setq syl:extension-init-dir (concat user-emacs-directory "init-extension/"))
(message (format "initializing extensions out of %s" syl:extension-init-dir))
(dolist (ext syl:pre-extensions)
(let* ((initfile (concat syl:extension-init-dir (format "init-%s.el" ext))))
(if (file-exists-p initfile)
(progn (load initfile)
(message (format "loaded %s" initfile))))))
(provide 'pre-extensions)