You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
306 B

;;; c-mode-settings.el --- Settings for c modes.
(use-package clang-format+)
(use-package counsel-gtags)
(add-hook 'c-mode-common-hook #'clang-format+-mode)
(add-hook 'c-mode-hook 'counsel-gtags-mode)
(add-hook 'c++-mode-hook 'counsel-gtags-mode)
;; 4 space offset for c
(setq-default c-basic-offset 4)