 
 
 ;; folding
+(add-hook 'prog-mode-hook #'hs-minor-mode)
+
 (require 'vimish-fold)
-(vimish-fold-global-mode 1)
+;(vimish-fold-global-mode 1)
 
 (require 'evil-vimish-fold)
 (evil-vimish-fold-mode 1)
 
+; enable hideshow minor mode in all programming modes
+(setq evil-fold-list (remove-if (lambda (e) (eq (caar e) 'hs-minor-mode)) evil-fold-list))
+(add-to-list 'evil-fold-list '((hs-minor-mode) ...)) 
+
+
+
+(require 'evil-matchit)
+(global-evil-matchit-mode 1)
 
 (require 'clang-format)
 (global-set-key [C-M-tab] 'clang-format-region)

(load-theme 'tsdh-dark)

;;; start with file tree view
(neotree)

;;; reload file (revert)
(global-auto-revert-mode 1)

 tab-width 4
 make-backup-files nil
 indent-tabs-mode nil
 ;show-trailing-whitespace t
 visible-bell nil)


