Skip to content

Commit

Permalink
Play nice with global before-save-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
edmccard committed Feb 13, 2012
1 parent 4c008b1 commit 737760e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js2-mode.el
Expand Up @@ -10421,7 +10421,7 @@ If so, we don't ever want to use bounce-indent."
;; So it's back to `c-fill-paragraph'.
(set (make-local-variable 'fill-paragraph-function) #'c-fill-paragraph)

(set (make-local-variable 'before-save-hook) #'js2-before-save)
(add-hook 'before-save-hook #'js2-before-save nil t)
(set (make-local-variable 'next-error-function) #'js2-next-error)
(set (make-local-variable 'beginning-of-defun-function) #'js2-beginning-of-defun)
(set (make-local-variable 'end-of-defun-function) #'js2-end-of-defun)
Expand Down

0 comments on commit 737760e

Please sign in to comment.