js-react-redux-yasnippets icon indicating copy to clipboard operation
js-react-redux-yasnippets copied to clipboard

add installation guide in readme

Open ivanchoff opened this issue 5 years ago • 5 comments

Hi, i really want to use this react snippets... it will be useful to have an installation guide section in readme.

ivanchoff avatar Feb 22 '20 18:02 ivanchoff

the package can be installed from melpa, but after installed how to use it?

ivanchoff avatar Feb 22 '20 18:02 ivanchoff

After you've successfully installed latest versions of yasnippet and js-react-redux-yasnippets the snippets should be available in all modes derived from js-mode AFAIR the command is yas-expand and it should be bound to the [Tab] key.

sooqua avatar Feb 25 '20 23:02 sooqua

@ivanchoff @sooqua I found out that, if not do some extra config, js-react-redux-yasnippets will not register its snippets dir to yas-snippet-dirs automatically.

(use-package js-react-redux-yasnippets
    :after yasnippet ;; will not work if not adding this line
    )

After adding :after yasnippet as above, js-react-redux-yasnippets works.

adispring avatar Mar 26 '20 06:03 adispring

If you don't load the package (for example, with use-package as above), the helpers like js-react-redux-yasnippets-semicolon won't be known and will trigger errors when snippets are expanded.

sandinmyjoints avatar Jul 12 '21 17:07 sandinmyjoints

install Instructions in readme? Does anyone know how to get this working in DoomEmacs?

badbabykosh avatar Feb 15 '22 21:02 badbabykosh