-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackages.el
35 lines (30 loc) · 1.2 KB
/
packages.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;; packages.el --- spacemacs-prettier layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Praveen Perera <praveen@Praveens-MBP>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; Commentary:
;; See the Spacemacs documentation and FAQs for instructions on how to implement
;; a new layer:
;;
;; SPC h SPC layers RET
;;
;;
;; Briefly, each package to be installed or configured by this layer should be
;; added to `spacemacs-prettier-packages'. Then, for each package PACKAGE:
;;
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a
;; function `spacemacs-prettier/init-PACKAGE' to load and initialize the package.
;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so
;; define the functions `spacemacs-prettier/pre-init-PACKAGE' and/or
;; `spacemacs-prettier/post-init-PACKAGE' to customize the package as it is loaded.
(setq spacemacs-prettier-packages
'((prettier-js :fetcher github :repo "prettier/prettier-emacs")))
(defun spacemacs-prettier/init-prettier-js ()
(require 'prettier-js)
(spacemacs|diminish prettier-js-mode " Ⓟ" " P"))