       (treemacs-define-custom-icon (all-the-icons-octicon "settings") "json" "yaml" "yml" "ini")
       (treemacs-define-custom-icon (all-the-icons-octicon "file-media") "ico" "png" "jpg" "jpeg" "svg")))
 
+  (after 'treemacs
+    (if (and (executable-find "git")
+             (executable-find "python3"))
+        (treemacs-git-mode 'extended)
+      (treemacs-git-mode 'simple)))
+
   (after 'evil
     (require-package 'treemacs-evil)
     (require 'treemacs-evil))

  (interactive)
  (cond
   ((eq dotemacs-explorer/option 'treemacs)
    (if (treemacs--is-visible?)
        (treemacs-projectile-toggle)
      (treemacs-projectile)))
   ((eq dotemacs-explorer/option 'dired-sidebar)
    (dired-sidebar-toggle-sidebar))))


  (setq treemacs-filewatch-mode t)
  (setq treemacs-tag-follow-mode t)
  (setq treemacs-file-event-delay 1000)

  (when (and dotemacs-explorer/all-the-icons (font-info "all-the-icons"))
    (after 'treemacs
