 ;; Run programming mode hooks
 ;; This is used for modes which should trigger programming mode hooks
 (defun me:run-prog-mode-hooks () (run-hooks 'prog-mode-hook))
-;; This is used for modes which need tabs
-(defun me:set-indent-tabs-mode () ( setq indent-tabs-mode t))
 
 ;; configuration I haven't figured out how to wedge into
 ;; use-package
 
-(setq-default tab-width 3                                   ; ideal tab width
+(setq-default tab-width 3                                   ; preferred tab width
               indent-tabs-mode nil                          ; disable tabs, re-enable selectively
               indicate-empty-lines t                        ; show empty lines at end of buffer
               fill-column 120)                              ; auto-wrap only very long lines


(use-package cmake-mode
  :config
  :hook ( cmake-mode . me:set-indent-tabs-mode)
  :init
  (setq cmake-tab-width 3)
  :mode

          (lambda ()
            (setq indent-tabs-mode t)                        ; tabs are needed
            (modify-syntax-entry ?+ "." )))                  ; + is punctuation

(run-with-idle-timer 0.1 nil #'me:extra-setup)

