Fixes function name bug in react layer fmt-on-save

This commit is contained in:
Tommy Groshong 2019-11-22 14:54:19 -05:00 committed by Maximilian Wolff
parent 42879fccc1
commit 740e6a2a3c
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
3 changed files with 3 additions and 2 deletions

View File

@ -2725,6 +2725,7 @@ Other:
- Fixed documentation issues with slack and emoji layers
(thanks to Benjamin Reynolds)
- Fixed =helm= menu display (thanks to Leslie Shawn Russell)
- Fixed function name bug in react layer fmt-on-save (thanks to Tommy Groshong)
**** Smex
- Fixed ~SPC m :~ for current major mode commands (thanks to tinysong)
**** Solidity

View File

@ -83,5 +83,5 @@ If optional argument P is present, test this instead of point."
(yas-activate-extra-mode 'js-mode))
;; Format
(defun spacemacs/react-fmt-before-save-hook ()
(defun spacemacs//react-fmt-before-save-hook ()
(add-hook 'before-save-hook 'spacemacs/javascript-format t t))

View File

@ -75,7 +75,7 @@
(add-hook 'rjsx-mode-local-vars-hook #'spacemacs//react-setup-next-error-fn)
;; setup fmt on save
(when javascript-fmt-on-save
(add-hook 'rjsx-mode-local-vars-hook 'spacemacs/react-fmt-before-save-hook))
(add-hook 'rjsx-mode-local-vars-hook #'spacemacs//react-fmt-before-save-hook))
:config
;; declare prefix