                      json-mode
                      json-navigator
                      haskell-mode
+                     lua-mode
                      processing-mode
                      restart-emacs
                      diffview


(defun my-c-mode-common-hook ()
  (setq-local fill-column 90)
  (add-to-list 'company-backends 'company-rtags)
  ;; (setq rtags-show-containing-function t)
  ;; (setq-local eldoc-documentation-function #'rtags-eldoc-function)
  ;; (eldoc-mode 1)

  (define-key c-mode-base-map (kbd "M-.") 'my-goto-symbol)
  (define-key c-mode-base-map (kbd "M-,") 'pop-tag-mark)
  (define-key c-mode-base-map (kbd "C-M-\\") 'clang-format-region)
  (when use-rtags (define-key c-mode-base-map (kbd "M-?") 'rtags-display-summary))
  (define-key c-mode-base-map (kbd "C-i") 'clang-format)
  (define-key c-mode-base-map (kbd "C-.") 'my-imenu)
  (define-key c-mode-base-map (kbd "M-o") 'cff-find-other-file))
