aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Leung <bkleung89@gmail.com>2019-04-13 00:57:15 +0200
committerLudovic Courtès <ludo@gnu.org>2019-04-14 17:42:09 +0200
commitc6b384de501591d548ebec5ff1305961d4f94fa6 (patch)
treeaed952aa07c3351aa401987ac438dc899df77383
parentb571a69a0fb3ceb93c5f604017ad75a01f1e4e2c (diff)
downloadpatches-c6b384de501591d548ebec5ff1305961d4f94fa6.tar
patches-c6b384de501591d548ebec5ff1305961d4f94fa6.tar.gz
gnu: Add emacs-prettier.
* gnu/packages/emacs-xyz.scm (emacs-prettier): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/emacs-xyz.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f48ecf6afe..ad44d35d13 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -14431,6 +14431,30 @@ buffers.")
JavaScript.")
(license license:gpl3+))))
+(define-public emacs-prettier
+ (let ((commit "e9b73e81d3e1642aec682195f127a42dfb0b5774")
+ (version "0.1.0")
+ (revision "1"))
+ (package
+ (name "emacs-prettier")
+ (version (git-version version revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prettier/prettier-emacs")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0hj4fv3fgc60i6jrsx4a81s5c9fsxxafhhs3q2q1dypsscjci9ph"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/prettier/prettier-emacs")
+ (synopsis "Automatic formatting of JavaScript code")
+ (description "This package integrates Prettier with Emacs, and
+provides a minor mode that autoformats the buffer upon saving.")
+ (license license:expat))))
+
(define-public emacs-semantic-refactor
;; The last release, 0.5, was made on 2015-07-26 and there have been 47
;; commits since then.