Skip to content

Commit

Permalink
Replace region handy func.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jul 4, 2012
1 parent d3b8d49 commit 192098e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions haskell-show.el
Expand Up @@ -28,6 +28,11 @@
(defvar sexp-show "sexp-show")
(require 'haskell-string)

(defun haskell-show-replace-region ()
"Replace the given region with a pretty printed version."
(interactive)
(haskell-show-replace (region-beginning) (region-end)))

;;;###autoload
(defun haskell-show-replace (start end)
"Replace the given region containing a Show value with a pretty
Expand Down

0 comments on commit 192098e

Please sign in to comment.