rice

personal dot files and scripts for linux and macOS
Log | Files | Refs | README | LICENSE

module-c.el (917B)


      1 (setq path-to-ctags "/usr/local/Cellar/ctags/5.8_1/bin/ctags")
      2 
      3 (use-package ggtags
      4   :delight ggtags-mode
      5   :bind (:map ggtags-mode-map
      6           ("C-c g s" . ggtags-find-other-symbol)
      7           ("C-c g h" . ggtags-view-tag-history)
      8           ("C-c g r" . ggtags-find-reference)
      9           ("C-c g f" . ggtags-find-file)
     10           ("C-c g c" . ggtags-create-tags)
     11           ("C-c g u" . ggtags-update-tags)
     12           ("C-c C-j" . ggtags-find-tag-dwim)
     13           ("M-,"     . pop-tag-mark))
     14   :config
     15   (progn (add-hook 'c-mode-common-hook
     16            (lambda ()
     17              (when (derived-mode-p 'c-mode 'c++-mode 'java-mode 'asm-mode)
     18                (ggtags-mode 1))))
     19 
     20       (setq font-lock-maximum-decoration
     21         '((c-mode . 3)))
     22 
     23       (setq c-default-style "gnu"
     24         c-basic-offset 4)))
     25 
     26 (use-package company-c-headers
     27   :after company)
     28 
     29 ;; (bind-key "C-c C-c" #'compile c-mode-map)
     30 
     31 (provide 'module-c)