 
 ;; Remove trailing white spaces
 (defun my/delete-trailing-whitespace ()
-  (when (not (eq #'markdown-mode
-                 (with-current-buffer (current-buffer) major-mode)))
-    (delete-trailing-whitespace)))
+  (let ((mode (with-current-buffer (current-buffer) major-mode)))
+       (when (not (or (eq #'markdown-mode mode) (eq #'gfm-mode mode)))
+         (delete-trailing-whitespace))))
 
 (add-hook 'before-save-hook #'my/delete-trailing-whitespace)
 

  :ensure ivy-hydra
  :ensure swiper
  :ensure counsel
  :diminish ivy-mode
  :diminish counsel-mode
  :demand t

 '(git-gutter:separator-sign "|")
 '(package-selected-packages
   (quote
    (go-mode protobuf-mode god-mode god org-mode docker-compose-mode arduino-mode company-arduino dockerfile-mode treemacs-projectile treemacs hindent intero-mode intero flycheck-elm toml-mode markdown-mode+ yaml-mode swiper ivy fsharp-mode omnisharp csharp-mode elm-mode typescript-mode tern flycheck company mu4e-alert rbenv nvm xclip web-mode use-package tide spaceline smex rainbow-delimiters purescript-mode psc-ide projectile prodigy popwin nix-mode multiple-cursors modalka minibuffer-line magit load-dir json-mode js2-mode ivy-hydra hc-zenburn-theme haskell-mode git-gutter fill-column-indicator exwm elfeed counsel company-tern company-quickhelp ace-window))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
