d1d58ef9f4
New functions in rst-sphinx: - rst-sphinx-find-conf-py-path - rst-sphinx-open-conf - rst-sphinx-clean - rst-sphinx-rebuild Modified functions: - rst-sphinx-compile takes now an optional argument to clean the project - rst-sphinx-find-conf has been renamed to rst-sphinx-set-variables and now use rst-sphinx-find-conf-py-path function New key bindings: - "cc" --> rst-sphinx-compile - "cC" --> rst-sphinx-clean - "cr" --> rst-sphinx-rebuild - "gc" --> rst-sphinx-open-conf - "o" --> rst-sphinx-target-open)))
29 lines
772 B
EmacsLisp
29 lines
772 B
EmacsLisp
;;; packages.el --- Sphinx layer packages file for Spacemacs.
|
|
;;
|
|
;; Copyright (c) 2012-2017 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/post-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)))
|
|
|