You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep. Here's what you'll need to do to prepare the code itself:
Make sure the boilerplate is parseable by 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).
Use a consistent prefix for all identifiers. So ghc-hare-command => hare-ghc-command, erlang-xemacs-p => hare-erlang-xemacs-p, refac-result => hare-refac-result etc.
Rename read-char-spec.el to hare-read-char-spec.el, or inline it in hare.el
Move your provide form to the bottom, before the ;;; hare.el ends here comment which auto-insert-mode will add
Add a ;; Package-Requires: header to specify a dependency on haskell-mode, e.g. ;; Package-Requires ((haskell-mode "13.10")).
Remove all the messy commented-out code referring to erlang, distel etc.
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.
Originally https://github.com/alanz/HaRe/issues/12
The text was updated successfully, but these errors were encountered: