This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/python/config.el
syl20bnr a4e47cfc6b YAPF configuration edition and documentation
Rename `yapf-format-on-save` to `python-enable-yapf-format-on-save`
to be more consistent with the other layer variables
2015-04-22 00:02:23 -04:00

35 lines
1 KiB
EmacsLisp

;;; packages.el --- Python Layer packages 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)
(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)