Skip to content
Browse files

Move stylish-haskell invocation to after-save-hook.

  • Loading branch information...
1 parent 6230fd9 commit a37fa715f3335544994da3b39fb1fe9d6da9fc2b @gregorycollins gregorycollins committed Dec 11, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 haskell-mode.el
View
10 haskell-mode.el
@@ -762,14 +762,16 @@ This function will be called with no arguments.")
(defun haskell-mode-before-save-handler ()
"Function that will be called before buffer's saving."
- (when haskell-stylish-on-save
- (ignore-errors ; save anyway!
- (haskell-mode-stylish-buffer))))
+ )
(defun haskell-mode-after-save-handler ()
"Function that will be called after buffer's saving."
(when haskell-tags-on-save
- (haskell-process-generate-tags)))
+ (ignore-errors (haskell-process-generate-tags)))
+ (when haskell-stylish-on-save
+ (ignore-errors (haskell-mode-stylish-buffer)))
+ (set-buffer-modified-p nil)
+ )
(defun haskell-mode-buffer-apply-command (cmd)
"Execute shell command CMD with current buffer as input and

0 comments on commit a37fa71

Please sign in to comment.
Something went wrong with that request. Please try again.