mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 19:37:58 +00:00
Initialize text conversion hooks for each C Mode buffer
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Always add text conversion hooks.
This commit is contained in:
parent
41a99ea993
commit
a5b74e2ff6
1 changed files with 5 additions and 4 deletions
|
|
@ -251,13 +251,14 @@ control). See \"cc-mode.el\" for more info."
|
|||
(when (fboundp 'electric-indent-local-mode)
|
||||
(add-hook 'electric-indent-mode-hook 'c-electric-indent-mode-hook)
|
||||
(add-hook 'electric-indent-local-mode-hook
|
||||
'c-electric-indent-local-mode-hook))
|
||||
;; Set up text conversion, for Emacs >= 30.0
|
||||
(when (boundp 'post-text-conversion-hook)
|
||||
(add-hook 'post-text-conversion-hook #'c-post-text-conversion)))
|
||||
'c-electric-indent-local-mode-hook)))
|
||||
;; Will try initialization hooks again if they failed.
|
||||
(put 'c-initialize-cc-mode initprop c-initialization-ok))))
|
||||
|
||||
;; Set up text conversion, for Emacs >= 30.0
|
||||
(when (boundp 'post-text-conversion-hook)
|
||||
(add-hook 'post-text-conversion-hook #'c-post-text-conversion))
|
||||
|
||||
(unless new-style-init
|
||||
(c-init-language-vars-for 'c-mode)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue