-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recipe for ob-elm
#6605
Add recipe for ob-elm
#6605
Conversation
Thanks, looks useful. ob-elm.elM-x checkdoc (using version 0.6.1): M-x package-lint-current-buffer (using version 20191124.132):
The org-babel conventions seem fine, but the above one could be addressed. M-x byte-compile-file (using Emacs 26.3):
I think a typo snuck in for the first chunk. A |
@riscy Done. I've opted to specify the org version. Here's the merged(upstream) PR: https://github.com/BonfaceKilz/ob-elm/pull/9/files Here are the specific commits that address each of the points addressed above:
|
This is almost there, but I'm having trouble with this expression here (maybe you can clarify): (add-hook 'elm-mode-hook
(lambda ()
(setq-local comint-prompt-regexp
(concat elm-prompt-regexp "\\|^λ?> ")))) Does this have any effect? For instance I don't think For reference, I see ob-haskell has something similar, (add-hook 'inferior-haskell-hook
(lambda ()
(setq-local comint-prompt-regexp
(concat haskell-prompt-regexp "\\|^λ?> ")))) but the hook here is being added to inferior-haskell (i.e. the REPL) instead of haskell-mode. Since I'm not too familiar with ob stuff, I'm not sure what the goal of changing the prompt is. But usually a change like that (one that a user might want to undo) should be done through a minor mode, not as a hook that gets snuck in when a function is called. In addition, anything you add as a hook in a package should probably be a named function, not an anonymous one -- named functions can be easily redefined, and named functions are easier to remove from hooks once they're in there. That was a bit long-winded, but if that expression isn't having any effect, I wonder if you could just remove it? |
Thanks for the review. I've learnt something about things to watch out for when creating a package 😄 👍 I'm not an expert on |
Great, thanks for this. And, welcome to MELPA! |
Brief summary of what the package does
Org-Babel support for evaluating Elm code
Direct link to the package repository
https://github.com/BonfaceKilz/ob-elm
Your association with the package
I'm the author
Relevant communications with the upstream package maintainer
None needed
Checklist
Please confirm with
x
:M-x checkdoc
is happy with my docstringsNote:
I ignored the above errors because fixing them would mean going against conventions set here in the officicial org template for extending languages