We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For identifying and skipping implementation-specific makefiles.
Emacs file local variable:
# -*- mode: <language> -*-
where <language> is a make language variant, such as make, gmake, bmake, nmake, etc.
<language>
make
gmake
bmake
nmake
Vim modeline:
# vim: ft=<language>:
We should confirm the exact language names in both Vim and Emacs, in case they require subtly different names for the various make implementations.
Vim users also apply instead the bindings syntax or filetype.
syntax
filetype
See also the polyglot forms:
# -*- mode: <language>; -*- # vim: set syntax=language:
# -*- mode: <language>; -*- vim: set ft=<language>:
https://marketplace.visualstudio.com/items?itemName=chrislajoie.vscode-modelines
We should warn to encourage this mode line in *.include.mk files.
*.include.mk
We should document in the parsing guide that mode lines are good to use, especially for makefiles using non-POSIX extensions.
The text was updated successfully, but these errors were encountered:
Pending ctlajoie/vscode-modelines@8a6db4d
Sorry, something went wrong.
Oh wow, POSIX vi dropped support for modelines.
All the more reason to use ft rather than syntax in Vim and Emacs modelines.
ft
No branches or pull requests
For identifying and skipping implementation-specific makefiles.
Emacs file local variable:
# -*- mode: <language> -*-
where
<language>
is a make language variant, such asmake
,gmake
,bmake
,nmake
, etc.Vim modeline:
# vim: ft=<language>:
We should confirm the exact language names in both Vim and Emacs, in case they require subtly different names for the various make implementations.
Vim users also apply instead the bindings
syntax
orfiletype
.See also the polyglot forms:
# -*- mode: <language>; -*- vim: set ft=<language>:
https://marketplace.visualstudio.com/items?itemName=chrislajoie.vscode-modelines
We should warn to encourage this mode line in
*.include.mk
files.We should document in the parsing guide that mode lines are good to use, especially for makefiles using non-POSIX extensions.
The text was updated successfully, but these errors were encountered: