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/layers/+frameworks/django/packages.el

57 lines
1.8 KiB
EmacsLisp
Raw Normal View History

;;; packages.el --- Django 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
2015-07-06 07:32:22 +00:00
(setq django-packages
'(
pony-mode
))
2015-07-06 07:32:22 +00:00
(defun django/init-pony-mode ()
(use-package pony-mode
:defer t
:init (progn
(spacemacs/set-leader-keys-for-major-mode 'python-mode
; d*j*ango f*a*bric
"jaf" 'pony-fabric
"jad" 'pony-fabric-deploy
; d*j*ango *f*iles
"jfs" 'pony-goto-settings
"jfc" 'pony-setting
"jft" 'pony-goto-template
"jfr" 'pony-resolve
; d*j*ango *i*nteractive
"jid" 'pony-db-shell
"jis" 'pony-shell
; d*j*ango *m*anage
; not including one-off management commands like "flush" and
; "startapp" even though they're implemented in pony-mode,
; because this is much handier
"jm" 'pony-manage
; d*j*ango *r*unserver
"jrd" 'pony-stopserver
"jro" 'pony-browser
"jrr" 'pony-restart-server
"jru" 'pony-runserver
"jrt" 'pony-temp-server
; d*j*ango *s*outh/*s*yncdb
"jsc" 'pony-south-convert
"jsh" 'pony-south-schemamigration
"jsi" 'pony-south-initial
"jsm" 'pony-south-migrate
"jss" 'pony-syncdb
; d*j*ango *t*est
"jtd" 'pony-test-down
"jte" 'pony-test-goto-err
"jto" 'pony-test-open
"jtt" 'pony-test
"jtu" 'pony-test-up))))