Merge topic 'emacs-mode-prog-mode-hooks'

b24b58bb cmake-mode.el: Add support for prog-mode hooks (#15521)
This commit is contained in:
Brad King 2015-06-25 10:39:17 -04:00 committed by CMake Topic Stage
commit 2d14021a85
1 changed files with 3 additions and 1 deletions

View File

@ -259,7 +259,9 @@ the indentation. Otherwise it retains the same position on the line"
(setq comment-start "#")
; Run user hooks.
(run-hooks 'cmake-mode-hook))
(if (boundp 'prog-mode-hook)
(run-hooks 'prog-mode-hook 'cmake-mode-hook)
(run-hooks 'cmake-mode-hook)))
; Help mode starts here