 
 (add-hook 'before-save-hook 'my/before-save-hook)
 (defun my/before-save-hook() "Presave hook"
-       (when (memq major-mode '(c++-mode emacs-lisp-mode perl-mode
-                                         java-mode python-mode dos-mode
-                                         nxml-mode protobuf-mode folio-mode
-                                         sh-mode csharp-mode awk-mode
-                                         gdb-script-mode
-                                         gitignore-mode
-                                         gitconfig-mode
-                                         gitattributes-mode))
+       (when (memq major-mode
+                   '(c++-mode
+                     emacs-lisp-mode
+                     perl-mode
+                     java-mode
+                     python-mode
+                     dos-mode
+                     nxml-mode
+                     protobuf-mode
+                     dart-mode
+                     folio-mode
+                     markdown-mode
+                     sh-mode
+                     csharp-mode
+                     awk-mode
+                     sed-mode
+                     gdb-script-mode
+                     gitignore-mode
+                     gitconfig-mode
+                     gitattributes-mode
+                     ))
          (delete-trailing-whitespace)
          (copyright-update nil t)
          (time-stamp)

         ;; :map ctl-x-5-map
         ;; ("h" . show-*Help*-buffer)
         )
  :config
  (substitute-key-definition 'delete-window      'delete-windows-for global-map)
  (substitute-key-definition 'delete-window      'remove-window global-map)

(use-package neotree :bind ("C-c 0n" . neotree-toggle))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; deft ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package deft
  :bind ("C-c d" . deft)
  :commands deft-find-file
  :config
  (setq deft-extensions '("txt" "org" "md"))
  (setq deft-recursive t)
  (setq deft-use-filename-as-title t)
  )

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; better colors in older versions
