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
Emacs mode: Several additions & adjustments #146
Conversation
Thanks. Please revise the commit messages to start in |
This allows the keywords be defined in a list and reused in different regexps.
@bradking Done, hope that looks okay. |
Rename `unscreamify-cmake-buffer' to `cmake-unscreamify-buffer'. Also, enclose function body with `save-excursion'.
Use `define-derived-mode` as per the recommended method: https://www.gnu.org/software/emacs/manual/html_node/elisp/Derived-Modes.html This automatically handles setup of the syntax table, keymaps, etc.
I've rebased to leave out the problem commits https://github.com/roysc/CMake/commit/8f83081b3687857d9f372d31a1de543a78de4148 and https://github.com/roysc/CMake/commit/d9d7b027354f5314f658aaae707bdc67b10f0f84. I'll open a new PR for those later. |
Please look at my comment on commit 31420cf. Currently it breaks indentation. Thanks. |
I saw that - I have some idea of the problem but I will have to test a bit more carefully this time. Sorry for the mess. |
Closing for now. Please re-open when new revisions are ready. |
Corresponding CMake issue: |
Define cmake-mode properly with
define-derived-mode
Add font-lock for keywords and variables
Rename to
cmake-unscreamify-buffer
cmake-indent
: Make closing parens match opening; clean up some