about summary refs log tree commit diff
path: root/emacs.d/snippets/rjsx-mode/redux-action
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-05-29T20·22-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-07-19T16·00-0400
commit3d256c6b3b593c216cab44f25075810d9767e5b0 (patch)
treefcb916d2180ece35f3361da82257f934fda5c93a /emacs.d/snippets/rjsx-mode/redux-action
parentfc283b7a23bdcdc7d908172632f292b494072f34 (diff)
Support additional JS snippets
Because React + Redux + Flow = SO MUCH BOILERPLATE...
Diffstat (limited to 'emacs.d/snippets/rjsx-mode/redux-action')
-rw-r--r--emacs.d/snippets/rjsx-mode/redux-action5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/snippets/rjsx-mode/redux-action b/emacs.d/snippets/rjsx-mode/redux-action
new file mode 100644
index 000000000000..d196f8ee809f
--- /dev/null
+++ b/emacs.d/snippets/rjsx-mode/redux-action
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: redux-action
+# key: rax
+# --
+export const ${1:$$(lower->caps yas-text)} = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'
\ No newline at end of file