diff --git a/editors/emacs/README.md b/editors/emacs/README.md index 82cf8a9d9..d9a47f1e2 100644 --- a/editors/emacs/README.md +++ b/editors/emacs/README.md @@ -4,5 +4,5 @@ Add this to your init: (require 'prettier-js) (add-hook 'js-mode-hook (lambda () - (add-hook 'before-save-hook 'jscodefmt-before-save))) + (add-hook 'before-save-hook 'prettier-before-save))) ``` diff --git a/editors/emacs/prettier-js.el b/editors/emacs/prettier-js.el index 26f2791a7..2b9ddb1c3 100644 --- a/editors/emacs/prettier-js.el +++ b/editors/emacs/prettier-js.el @@ -62,7 +62,7 @@ a `before-save-hook'." ;;;###autoload (defun prettier-before-save () "Add this to .emacs to run refmt on the current buffer when saving: - (add-hook 'before-save-hook 'refmt-before-save)." + (add-hook 'before-save-hook 'prettier-before-save)." (interactive) (when (eq major-mode 'js-mode) (prettier)))