                                   ("%b - Dir:  " default-directory)))))))
 
 
-(setq-default indent-tabs-mode t)
-(setq tab-width 4)
+(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
 
-(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
+;; --------- Smart-tabs -------------
+
+(setq-default c-basic-offset 4
+              tab-width 4
+              indent-tabs-mode t)
+
+(smart-tabs-add-language-support c++ c++-mode-hook
+  ((c-indent-line . c-basic-offset)
+   (c-indent-region . c-basic-offset)))
+(smart-tabs-advice vhdl-indent-line vhdl-basic-offset)
+
+(smart-tabs-insinuate 'c 'c++ 'javascript)
+
 
 ;; ------ Flycheck ------------------
 

(setq auto-save-default nil) ;; stop creating those #autosave# files

;; ausgewÃ¤hlten Text bei Eingabe lÃ¶schen
(delete-selection-mode 1)

;; keine "yes-or-no"-Fragen - "y-or-n" reicht aus
(defalias 'yes-or-no-p 'y-or-n-p)

 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(show-trailing-whitespace t)
 ;;'(vhdl-indent-tabs-mode t)
 )


