[cmake-developers] [CMake 0015429]: Emacs: Please, inherit `cmake-mode' from `prog-mode'

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 4 15:23:43 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15429 
====================================================================== 
Reported By:                Haroogan
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15429
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-04 15:23 EST
Last Modified:              2015-03-04 15:23 EST
====================================================================== 
Summary:                    Emacs: Please, inherit `cmake-mode' from `prog-mode'
Description: 
The title speaks for itself. Is there any particular reason that you decided not
to make any inheritance for `cmake-mode'? Some people (including me) have things
like

(add-hook 'text-mode-hook 'fci-mode)
(add-hook 'prog-mode-hook 'fci-mode)

which make life easier, and that's exactly one of those features what proper
mode inheritance was intended for.

Please, consider using proper way of Emacs major mode definition, i.e.

(define-derived-mode cmake-mode prog-mode "CMAKE" ...

Thank you.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-04 15:23 Haroogan       New Issue                                    
======================================================================



More information about the cmake-developers mailing list