2016-02-04 11:21:09 +00:00
|
|
|
;;; packages.el --- emberjs layer packages file for Spacemacs.
|
|
|
|
;;
|
2018-10-13 17:44:50 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2016-02-04 11:21:09 +00:00
|
|
|
;;
|
|
|
|
;; Author: Robert O'Connor <robby.oconnor@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(defconst emberjs-packages
|
2018-11-20 19:55:37 +00:00
|
|
|
'(
|
|
|
|
ember-mode
|
|
|
|
ember-yasnippets
|
|
|
|
))
|
2016-02-04 11:21:09 +00:00
|
|
|
|
|
|
|
(defun emberjs/init-ember-mode ()
|
|
|
|
(use-package ember-mode
|
|
|
|
:defer t
|
2018-07-19 22:02:50 +00:00
|
|
|
:config
|
|
|
|
(spacemacs/declare-prefix-for-mode 'ember-mode "f" "framework")
|
2016-02-04 11:21:09 +00:00
|
|
|
(spacemacs/declare-prefix-for-mode 'ember-mode "fd" "destroy")
|
2018-07-19 22:02:50 +00:00
|
|
|
(spacemacs/declare-prefix-for-mode 'ember-mode "ff" "find")
|
|
|
|
(spacemacs/declare-prefix-for-mode 'ember-mode "fg" "generate")
|
2016-02-04 11:21:09 +00:00
|
|
|
(spacemacs/declare-prefix-for-mode 'ember-mode "fr" "run")
|
|
|
|
(spacemacs/set-leader-keys-for-minor-mode 'ember-mode
|
2018-07-19 22:02:50 +00:00
|
|
|
;; Destroy
|
|
|
|
"fdc" 'ember-destroy-controller
|
|
|
|
"fdm" 'ember-destroy-model
|
|
|
|
"fdo" 'ember-destroy-router
|
|
|
|
"fdp" 'ember-destroy-component
|
|
|
|
"fdr" 'ember-destroy-route
|
|
|
|
"fdj" 'ember-destroy-javascript
|
|
|
|
"fdt" 'ember-destroy-template
|
|
|
|
"fdx" 'ember-destroy-mixin
|
|
|
|
"fdi" 'ember-destroy-initializer
|
|
|
|
"fdu" 'ember-destroy-util
|
|
|
|
"fds" 'ember-destroy-service
|
|
|
|
"fdd" 'ember-destroy
|
|
|
|
;; Find
|
2016-02-04 11:21:09 +00:00
|
|
|
"ffc" 'ember-open-controller
|
|
|
|
"ffm" 'ember-open-model
|
|
|
|
"ffo" 'ember-open-router
|
|
|
|
"ffp" 'ember-open-component
|
|
|
|
"ffr" 'ember-open-route
|
|
|
|
"ffj" 'ember-open-javascript
|
|
|
|
"fft" 'ember-open-template
|
|
|
|
"ffx" 'ember-open-mixin
|
|
|
|
"ffi" 'ember-open-initializer
|
|
|
|
"ffu" 'ember-open-util
|
|
|
|
"ffs" 'ember-open-service
|
2018-07-19 22:02:50 +00:00
|
|
|
;; Generate
|
2016-02-04 11:21:09 +00:00
|
|
|
"fgc" 'ember-generate-controller
|
|
|
|
"fgm" 'ember-generate-model
|
|
|
|
"fgo" 'ember-generate-router
|
|
|
|
"fgp" 'ember-generate-component
|
|
|
|
"fgr" 'ember-generate-route
|
|
|
|
"fgj" 'ember-generate-javascript
|
|
|
|
"fgt" 'ember-generate-template
|
|
|
|
"fgx" 'ember-generate-mixin
|
|
|
|
"fgi" 'ember-generate-initializer
|
|
|
|
"fgu" 'ember-generate-util
|
|
|
|
"fgs" 'ember-generate-service
|
|
|
|
"fgg" 'ember-generate
|
2018-07-19 22:02:50 +00:00
|
|
|
;; Run
|
2016-02-04 11:21:09 +00:00
|
|
|
"frb" 'ember-build
|
|
|
|
"frs" 'ember-serve-or-display
|
|
|
|
"frt" 'ember-test)))
|
|
|
|
|
|
|
|
(defun emberjs/init-ember-yasnippets ()
|
|
|
|
(use-package ember-yasnippets
|
|
|
|
:defer t))
|
|
|
|
|
|
|
|
;;; packages.el ends here
|