diff options
author | Jostein Kjønigsen <jostein@kjonigsen.net> | 2015-06-23 08:05:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-23 12:48:01 (GMT) |
commit | b24b58bb7b100794846786521f1977f048ecf5b6 (patch) | |
tree | 57cc088e1dc5ff17e1526ee07f9831843497832d /Auxiliary/cmake.m4 | |
parent | 6ccb534df3a131d87ea14082fea05484039fc524 (diff) | |
download | CMake-b24b58bb7b100794846786521f1977f048ecf5b6.zip CMake-b24b58bb7b100794846786521f1977f048ecf5b6.tar.gz CMake-b24b58bb7b100794846786521f1977f048ecf5b6.tar.bz2 |
cmake-mode.el: Add support for prog-mode hooks (#15521)
Since version 24, Emacs supports a generic mode called prog-mode. Like
all other modes it has its own mode-hook, prog-mode-hook. For Emacs
users it is common to provide all your generic programming-mode related
customizations in this mode-hook.
cmake-mode is definitely a programming-mode and should support calling
this hook. There are two ways to make that happen:
* Make your major-mode a derived-mode from prog-mode.
* Manually calling the hook upon mode-activation.
Implementing a derived mode may be the most proper thing to do, but that
may require quite a few structural changes. For now just call the hook
explicitly if it exists. This should cover much of what users need.
Diffstat (limited to 'Auxiliary/cmake.m4')
0 files changed, 0 insertions, 0 deletions