-
Notifications
You must be signed in to change notification settings - Fork 117
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
[craftedv2beta] Standardized way for naming functions #347
Comments
I was always working on the assumption that If it's up for discussion, I prefer that over the |
ye, I had a similar assumption, however I noticed we don't have a clear guideline. Same naming would apply for variables/ Just wanted a small discussion place instead of just changing the guidelines docs 😄 |
I also totally forgot we link to the Emacs Lisp Style Guide in the README. Might be useful for people who are comfortable in Emacs, but may not be comfortable with git/GitHub and how to contribute things. Just some thoughts, once I have some more concrete ideas on how that would look, I'll PR them. More thoughts, opinions and suggestions welcome 😄 |
I'm not as big a fan of the Generally, I agree we should follow a consistent naming structure, for me that would be We might consider adding a |
I'm closing this as the functions have somewhat standardized naming now. |
I don't know if we have a standardized way for naming functions, if we do, we probably should document it.
I think putting in the module name is important as it automatically documents where it comes from.
As for the separation character, I'm open for both (
/
or-
).The
/
makes it look a little more special (compared to e.g. built-in functions), but my understanding is that the/
is usually used for personal functions, not libraries (or by extension something like Crafted Emacs).Also the
-
may be nicer to look at with interactive, but that's just my point of view.We could split it between interactive/configuration functions and e.g. hook functions, but I feel that may add additional mental overhead without much benefit.
The text was updated successfully, but these errors were encountered: