ENH: Added comment-region support.
This commit is contained in:
parent
d73794f814
commit
965b44cdd5
|
@ -148,7 +148,6 @@
|
|||
(modify-syntax-entry ?\) ")(" cmake-mode-syntax-table)
|
||||
(modify-syntax-entry ?# "<" cmake-mode-syntax-table)
|
||||
(modify-syntax-entry ?\n ">" cmake-mode-syntax-table)
|
||||
|
||||
|
||||
; Setup font-lock mode.
|
||||
(make-local-variable 'font-lock-defaults)
|
||||
|
@ -158,6 +157,10 @@
|
|||
(make-local-variable 'indent-line-function)
|
||||
(setq indent-line-function 'cmake-indent)
|
||||
|
||||
; Setup comment syntax.
|
||||
(make-local-variable 'comment-start)
|
||||
(setq comment-start "#")
|
||||
|
||||
(run-hooks 'cmake-mode-hook))
|
||||
|
||||
; This file provides cmake-mode.
|
||||
|
|
Loading…
Reference in New Issue