 ;; display region when active
 (transient-mark-mode)
 
+;; settings for editing c
+(use-package cc-vars
+  :config
+  (setq-default c-basic-offset 4))
+
 ;; view imenu in a dedicated popup buffer
 (use-package imenu-list
   :straight t

  ("C-c s f" . #'helm-find)
  ("C-c s a" . #'helm-do-grep-ag)
  ("C-c ." . #'helm-semantic-or-imenu)
  :config
  (setq helm-split-window-in-side-p nil
        ;; When executing helm command, use ~C-c C-f~ to follow entries
        helm-follow-mode-persistent t)
  (helm-mode))

;; search through buffer

  (let ((map projectile-mode-map))
    (define-key map (kbd "C-c p") projectile-command-map)
    (define-key map (kbd "s-p") projectile-command-map))
  (projectile-mode)
  (defun t/smart-find (arg)
    "Jump to file in current project or directory

