kazu-yamamoto / hhp

Happy Haskell Programming
BSD 3-Clause "New" or "Revised" License
67 stars 5 forks source link

Call hhp-check-syntax from after-save-hook #6

Closed ttuegel closed 5 years ago

ttuegel commented 5 years ago

Calling hhp-check-syntax from after-save-hook ensures that it runs even if the user has remapped C-x C-s in their Emacs configuration.

ttuegel commented 5 years ago

C-xC-s MUST check syntax even if the buffer is not modified.

In response to your feedback, I changed my pull request so that hhp-save-buffer is bound to [remap save-buffer] using define-key.

kazu-yamamoto commented 5 years ago

Merged. Thank you for your contribution!