2015-07-04 03:52:33 +00:00
|
|
|
;;; packages.el --- Django Layer packages File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-07-04 03:52:33 +00:00
|
|
|
;;
|
|
|
|
;; 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
|
2015-07-04 03:52:33 +00:00
|
|
|
'(
|
|
|
|
pony-mode
|
|
|
|
))
|
|
|
|
|
2015-07-06 07:32:22 +00:00
|
|
|
(defun django/init-pony-mode ()
|
2015-07-04 03:52:33 +00:00
|
|
|
(use-package pony-mode
|
|
|
|
:defer t
|
|
|
|
:init (progn
|
2017-05-15 18:13:07 +00:00
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mj" "django")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mja" "fabric")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mjf" "files")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mji" "interactive")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mjr" "runserver")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mjs" "south/syncdb")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'python-mode "mjt" "test")
|
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'python-mode
|
|
|
|
"jaf" 'pony-fabric
|
|
|
|
"jad" 'pony-fabric-deploy
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
"jfs" 'pony-goto-settings
|
|
|
|
"jfc" 'pony-setting
|
|
|
|
"jft" 'pony-goto-template
|
|
|
|
"jfr" 'pony-resolve
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
"jid" 'pony-db-shell
|
|
|
|
"jis" 'pony-shell
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-07-04 03:52:33 +00:00
|
|
|
; not including one-off management commands like "flush" and
|
|
|
|
; "startapp" even though they're implemented in pony-mode,
|
|
|
|
; because this is much handier
|
2015-11-18 00:38:05 +00:00
|
|
|
"jm" 'pony-manage
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
"jrd" 'pony-stopserver
|
|
|
|
"jro" 'pony-browser
|
|
|
|
"jrr" 'pony-restart-server
|
|
|
|
"jru" 'pony-runserver
|
|
|
|
"jrt" 'pony-temp-server
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
"jsc" 'pony-south-convert
|
|
|
|
"jsh" 'pony-south-schemamigration
|
|
|
|
"jsi" 'pony-south-initial
|
|
|
|
"jsm" 'pony-south-migrate
|
|
|
|
"jss" 'pony-syncdb
|
2017-05-15 18:13:07 +00:00
|
|
|
|
2015-11-18 00:38:05 +00:00
|
|
|
"jtd" 'pony-test-down
|
|
|
|
"jte" 'pony-test-goto-err
|
|
|
|
"jto" 'pony-test-open
|
|
|
|
"jtt" 'pony-test
|
|
|
|
"jtu" 'pony-test-up))))
|