Open
Conversation
Collaborator
|
The right way to fix this issue is to configure emacs to recognize ALL .ino files as c++. There's probably even an arduino specific plugin or something. |
Owner
|
As tomasloven said, is it possible to set that in emacs instead of having it in the code? I think I will close this PR.. |
Author
|
Well, the advantage of having this innocuous comment in the file is that it
will immediately work for any unconfigured emacs.
Den fre 11 maj 2018 00:26sm6yvr <notifications@github.com> skrev:
… As tomasloven said, is it possible to set that in emacs instead of having
it in the code? I think I will close this PR..
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADcfCTL3tCiTX2KH1xNptsIbYZixfsllks5txL6agaJpZM4PDwe6>
.
|
Collaborator
|
Using a plugin has several other advantages, such as
... you know, the kind of thing vim does by default... 😜 That's not an argument against the idea, just food for thought. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The commonly used editor Emacs has editing modes for different programming languages. It usually determines the programming mode based on file extension, but .ino is not recognized by default. By adding the following comment at the end of the file (where it doesn't disturb anyone), C++ mode will be automatically set.