Fixes function name bug in react layer fmt-on-save
This commit is contained in:
parent
42879fccc1
commit
740e6a2a3c
|
@ -2725,6 +2725,7 @@ Other:
|
||||||
- Fixed documentation issues with slack and emoji layers
|
- Fixed documentation issues with slack and emoji layers
|
||||||
(thanks to Benjamin Reynolds)
|
(thanks to Benjamin Reynolds)
|
||||||
- Fixed =helm= menu display (thanks to Leslie Shawn Russell)
|
- Fixed =helm= menu display (thanks to Leslie Shawn Russell)
|
||||||
|
- Fixed function name bug in react layer fmt-on-save (thanks to Tommy Groshong)
|
||||||
**** Smex
|
**** Smex
|
||||||
- Fixed ~SPC m :~ for current major mode commands (thanks to tinysong)
|
- Fixed ~SPC m :~ for current major mode commands (thanks to tinysong)
|
||||||
**** Solidity
|
**** Solidity
|
||||||
|
|
|
@ -83,5 +83,5 @@ If optional argument P is present, test this instead of point."
|
||||||
(yas-activate-extra-mode 'js-mode))
|
(yas-activate-extra-mode 'js-mode))
|
||||||
|
|
||||||
;; Format
|
;; 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))
|
(add-hook 'before-save-hook 'spacemacs/javascript-format t t))
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
(add-hook 'rjsx-mode-local-vars-hook #'spacemacs//react-setup-next-error-fn)
|
(add-hook 'rjsx-mode-local-vars-hook #'spacemacs//react-setup-next-error-fn)
|
||||||
;; setup fmt on save
|
;; setup fmt on save
|
||||||
(when javascript-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
|
:config
|
||||||
;; declare prefix
|
;; declare prefix
|
||||||
|
|
Loading…
Reference in a new issue