72

GitHub - johnmastro/react-snippets.el: Yasnippets for React

 5 years ago
source link: https://github.com/johnmastro/react-snippets.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

react-snippets.el

Yasnippets for React [].

Installation

Dependencies

The only dependency is Yasnippet [] version 0.7.0 or above.

ELPA

The preferred way to install react-snippets is via MELPA [].

To enable MELPA, if you haven't already, add something like the following to your Emacs configuration:

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

Then it (and Yasnippet, if you don't already have it) can be installed with

M-x package-install RET react-snippets RET

Manual

First, clone this repository somewhere.

$ cd /path/to/somewhere
$ git clone https://github.com/johnmastro/react-snippets.el.git

Then, in your Emacs init file, add that path to your load-path.

(add-to-list 'load-path "/path/to/somewhere/react-snippets.el")

Setup

Simply require the package.

(require 'react-snippets)

License

Copyright (C) 2014 John Mastro

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK