(add-hook 'json-mode-hook #'flycheck-mode)
(add-hook 'diary-hook 'appt-make-list)
(add-hook 'TeX-latex-mode 'auto-complete-mode)
(add-hook 'TeX-latex-mode 'flyspell-mode)

(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'auto-complete-mode)

(add-hook 'c++-mode-hook (lambda () (setq comment-start "//" comment-end   "")))
(add-hook 'c++-mode-hook (lambda () (setq c-default-style "linux" c-basic-offset 4)))
(add-hook 'c++-mode-hook 'outline-minor-mode)
(add-hook 'c++-mode-hook 'irony-mode)

(add-hook 'c-mode-hook (lambda () (setq comment-start "//" comment-end   "")))
(add-hook 'c-mode-hook (lambda () (setq c-default-style "linux" c-basic-offset 4)))
(add-hook 'c-mode-hook 'outline-minor-mode)
(add-hook 'c-mode-hook 'irony-mode)
(add-hook 'c-mode-hook 'webinar-mode)

(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
;;(add-hook 'doc-view-mode-hook 'auto-revert-mode)
