[cmake-developers] [CMake 0015521]: cmake-mode.el does not derive from prog-mode.

Mantis Bug Tracker mantis at public.kitware.com
Sat Apr 18 06:28:59 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15521 
====================================================================== 
Reported By:                Jostein Kjønigsen
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15521
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-04-18 06:28 EDT
Last Modified:              2015-04-18 06:28 EDT
====================================================================== 
Summary:                    cmake-mode.el does not derive from prog-mode.
Description: 
This means that lots of generic prog-mode hooks (like `projectile-mode` and
similar) won't get activated without adding a workaround like the following to
your `.emacs`-file:

````elisp
(add-hook 'cmake-mode-hook 'your-prog-mode-hook)
````

Not the end of the world, but definitely annoying.

Steps to Reproduce: 
1. Install emacs
2. Create a prog-mode hook according to your specifications
3. Install cmake-mode in emacs
4. Open cmake-file

5. Observe that cmake-mode-hook has been invoked, but not any prog-mode hooks.
Surely cmake is a programming-related mode?

Additional Information: 
A solution to this problem has been implemented in a fork found on Github:

https://github.com/roysc/cmake-mode/blob/master/cmake-mode.el#L247-L249
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-04-18 06:28 Jostein KjønigsenNew Issue                                    
======================================================================



More information about the cmake-developers mailing list