C/C++: improve extra fontification; add modern-cpp-font-lock plugin

This commit is contained in:
Henrik Lissner 2016-06-23 01:32:56 -04:00
parent 04f49981d7
commit 2649f6ffc1
3 changed files with 27 additions and 30 deletions

View file

@ -4,7 +4,9 @@
:commands (c-mode c++-mode objc-mode java-mode)
:mode ("\\.mm" . objc-mode)
:init
(add-hook! c++-mode '(highlight-numbers-mode doom|init-c++-C11-highlights))
(add-hook! (c-mode c++-mode) 'doom|extra-fontify-c/c++)
(add-hook 'c-mode-hook 'highlight-numbers-mode)
(add-hook 'c++-mode-hook 'doom|extra-fontify-c++)
(add-hook 'c-initialization-hook 'doom|init-c/c++-settings)
;; C++ header files
@ -40,6 +42,10 @@
;; Improve indentation of inline lambdas in C++11
(advice-add 'c-lineup-arglist :around 'doom/c-lineup-arglist))
(use-package modern-cpp-font-lock
:commands modern-c++-font-lock-mode
:init (add-hook 'c++-mode-hook 'modern-c++-font-lock-mode))
(use-package irony
:after cc-mode
:config