spacemacs/contrib/lang/python/config.el
Diego Berrocal 18d6c9bd5d Add pip-requirements package to python layer
[Pip requirements mode](https://github.com/Wilfred/pip-requirements.el)
for editing pip requirement files and autocompletion of PyPI Packages by
default.
2015-04-25 01:32:14 -04:00

37 lines
1.1 KiB
EmacsLisp

;;; config.el --- Python Layer Configuration File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; variables
(spacemacs|defvar-company-backends python-mode)
(spacemacs|defvar-company-backends pip-requirements-mode)
(defvar python-enable-yapf-format-on-save nil
"If non-nil, automatically format code with YAPF on save.")
;; Command prefixes
;; not supported for now
;; (setq python/key-binding-prefixes
;; '(; django/pony-mode
;; ("mj" . "django")
;; ("mjr" . "django-runserver")
;; ("mji" . "django-shells")
;; ("mjs" . "django-south/syncdb")
;; ("mjt" . "django-test")
;; ("mjf" . "django-files")
;; ("mja" . "django-fabric")
;; ; pyenv/pyenv-mode
;; ("mp" . "pyenv")))
;; (mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
;; python/key-binding-prefixes)