Open alanz opened 8 years ago
Comment on original by @purcell
Yep. Here's what you'll need to do to prepare the code itself:
package.el
. If in doubt, enable auto-insert-mode
and let it help you create a fresh hare.el
, then paste the code into it. Test with M-: (package-buffer-info)
.ghc-hare-command
=> hare-ghc-command
, erlang-xemacs-p
=> hare-erlang-xemacs-p
, refac-result
=> hare-refac-result
etc.read-char-spec.el
to hare-read-char-spec.el
, or inline it in hare.el
provide
form to the bottom, before the ;;; hare.el ends here
comment which auto-insert-mode
will add;; Package-Requires:
header to specify a dependency on haskell-mode, e.g. ;; Package-Requires ((haskell-mode "13.10"))
.Regarding the way the code works, the hare-init
code is a bit hacky, since it directly modifies haskell-mode-map
. What you want instead is to define a minor mode hare-mode
, and add the keybindings to the resulting hare-mode-map
. Then users can just enable hare-mode
in their haskell-mode-hook
.
Hope that helps.
-Steve
Originally https://github.com/alanz/HaRe/issues/12