emacs-ipython-notebook/ein-subpackages.el

66 lines
1.8 KiB
EmacsLisp
Raw Normal View History

;;; ein-subpackages.el --- Subpacakge management
;; Copyright (C) 2012- Takafumi Arakaki
;; Author: Takafumi Arakaki
;; This file is NOT part of GNU Emacs.
;; ein-subpackages.el is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; ein-subpackages.el is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with ein-subpackages.el. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;
;;; Code:
(defcustom ein:use-auto-complete nil
"Set to `t' to use preset auto-complete configuration."
:type 'boolean
:group 'ein)
(defcustom ein:use-auto-complete-superpack nil
"Set to `t' to use preset a little bit hacky auto-complete configuration."
:type 'boolean
:group 'ein)
(defcustom ein:use-smartrep nil
"Set to `t' to use preset smartrep configuration."
:type 'boolean
:group 'ein)
(defcustom ein:load-dev nil
"Load development helper."
:type 'boolean
:group 'ein)
(declare-function ein:ac-config-once "ein-ac")
(declare-function ein:smartrep-config-once "ein-smartrep")
(defun ein:subpackages-load ()
"Load sub-packages depending on configurations."
(when (or ein:use-auto-complete
ein:use-auto-complete-superpack)
(require 'ein-ac)
(ein:ac-config-once ein:use-auto-complete-superpack))
(when ein:use-smartrep
(require 'ein-smartrep)
(ein:smartrep-config-once))
(when ein:load-dev
(require 'ein-dev)))
(provide 'ein-subpackages)
;;; ein-subpackages.el ends here