23 lines
697 B
EmacsLisp
23 lines
697 B
EmacsLisp
(defvar syl:extensions
|
|
'(
|
|
emacs-eclim
|
|
flymake
|
|
linum-relativenumber
|
|
pymacs
|
|
))
|
|
|
|
;; load extensions
|
|
(dolist (ext syl:extensions)
|
|
(add-to-list 'load-path
|
|
(expand-file-name (concat 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: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 'extensions)
|