41e546f040
Had to create dummy init functions at some places since the owner of a package is the last layer that defines the init function of a package. And a package can be installed only if it has an owner.
29 lines
771 B
EmacsLisp
29 lines
771 B
EmacsLisp
;;; packages.el --- Sphinx layer packages file for Spacemacs.
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: <wwguo@hiGDP>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(defconst sphinx-packages
|
|
'(
|
|
rst
|
|
(rst-sphinx :location local)
|
|
))
|
|
|
|
(defun sphinx/init-rst-sphinx ()
|
|
(use-package rst-sphinx))
|
|
|
|
(defun sphinx/pre-init-rst ()
|
|
(spacemacs|use-package-add-hook rst
|
|
:post-config (spacemacs/set-leader-keys-for-major-mode 'rst-mode
|
|
"cc" 'rst-sphinx-compile
|
|
"cC" ' rst-sphinx-clean
|
|
"cr" ' rst-sphinx-rebuild
|
|
"gc" 'rst-sphinx-open-conf
|
|
"o" 'rst-sphinx-target-open)))
|
|
|