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 ruby-factory-mode recipe #3190
Conversation
Couple small things needed before merge.,
@purcell any issue with https://github.com/sshaw/ruby-factory-mode/blob/master/ruby-factory-mode.el#L157 ? I'm not sure the best way to deal with this. I don't know how we've dealt with this in the past. |
Thanks for the feedback.
I'm using it to get the plural and singular forms of a file's name. Some examples: https://github.com/sshaw/ruby-factory-mode/blob/master/ruby-factory-mode.el#L111
Here's are some examples of a MELPA package with snippets: #744, #3017 They more or less do the following: ;;;###autoload
(defun something-initialize ()
(let ((snip-dir (expand-file-name "snippets" snippets-root)))
(when (boundp 'yas-snippet-dirs)
(add-to-list 'yas-snippet-dirs snip-dir t))
(yas-load-directory snip-dir)))
;;;###autoload
(eval-after-load "yasnippet"
'(something-initialize)) In my case |
Agree re. autoloading the Re. the snippet setup, just being able to Further feedback:
|
Since when is this the case? Every minor mode I've ever heard of ends in
If you saw Removing the |
Perhaps I wasn't clear enough. Yes, of course, the minor mode itself gets the Don't forget that all the symbols in a package should be prefixed with the full package name, which is another standard elisp convention, which also points to keeping the package name brief, since the I'm not going to dig my heels in over this, but I wouldn't be doing my job if I didn't take the time to explain how things are supposed to work. :-) |
P.S. Examples of popular packages which provide a minor mode yet do not contain |
@purcell made some updates based on your feedback (thanks 👍). Checkout the melpa-fixes branch. |
Looks good! Note that
is equivalent to
|
can you fix up that final |
Just fixed it. |
Add ruby-factory-mode recipe
Thanks! |
Minor mode for Ruby test object generation libraries
https://github.com/sshaw/ruby-factory-mode
I'm the maintainer.