Skip to content

Instantly share code, notes, and snippets.

@syohex
Created November 29, 2012 14:11
Show Gist options
  • Select an option

  • Save syohex/4169329 to your computer and use it in GitHub Desktop.

Select an option

Save syohex/4169329 to your computer and use it in GitHub Desktop.
Wrap region with Haskell block comment
(defun haskell-block-commend-region (start end)
(interactive "r")
(save-excursion
(let (end-marker)
(goto-char end)
(setq end-marker (point-marker))
(goto-char start)
(insert "{-\n")
(goto-char (marker-position end-marker))
(insert "-}"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment