-
Notifications
You must be signed in to change notification settings - Fork 483
Few C snippets #294
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
Few C snippets #294
Conversation
|
Well I'm honored you chose this project for your first real "PR" then ;) I'll have a look shortly |
snippets/c-mode/puts
Outdated
| # name: puts | ||
| # key: puts | ||
| # -- | ||
| puts(${1:string}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a great fan of snippets with only one thing to expand, in this case it would only really save one keystroke (the (), and maybe the ";" at the end.
snippets/c-mode/strlen
Outdated
| # name: strlen | ||
| # key: strlen | ||
| # -- | ||
| strlen(${1:string}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here, unless we maybe shorten it (but not sure how it would be shortened) I would not include such trivial snippets
|
A few extra comments, FYI we also have These snippets seem C specific though so maybe it's fine this way. |
|
I'll remember about single arg snippets ;-) (I deleted these ones) I'am newbie with C and Emacs, so I will be adding c snippets gradually, if they are useful. |
|
Cool thanks! |
|
Your changes will go to Melpa tomorrow already and to Melpa stable as soon as I do another release (in the next few weeks probably) |
My first commit to "real" repo ever, so maybe isn't good enough.