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/+tools/prettier/packages.el

21 lines
551 B
EmacsLisp
Raw Normal View History

;;; packages.el --- prettier Layer packages file for Spacemacs
;;
2021-03-22 20:11:29 +00:00
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
;;
;; Author: Seong Yong-ju <sei40kr@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq prettier-packages '(prettier-js))
(defun prettier/init-prettier-js ()
(use-package prettier-js
:commands prettier-js
:init
(dolist (mode spacemacs--prettier-modes)
(spacemacs/set-leader-keys-for-major-mode mode
"==" #'prettier-js))))