Fix up emacs typos

master
kalmanb 2017-01-11 13:36:09 +13:00
parent 3f949907a0
commit e84d5d301a
2 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,5 @@ Add this to your init:
(require 'prettier-js) (require 'prettier-js)
(add-hook 'js-mode-hook (add-hook 'js-mode-hook
(lambda () (lambda ()
(add-hook 'before-save-hook 'jscodefmt-before-save))) (add-hook 'before-save-hook 'prettier-before-save)))
``` ```

View File

@ -62,7 +62,7 @@ a `before-save-hook'."
;;;###autoload ;;;###autoload
(defun prettier-before-save () (defun prettier-before-save ()
"Add this to .emacs to run refmt on the current buffer when saving: "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) (interactive)
(when (eq major-mode 'js-mode) (prettier))) (when (eq major-mode 'js-mode) (prettier)))