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

;; Project management
(use-package projectile
  :defer t
  :init
  (setq projectile-mode-line '(:eval
                               (if (file-remote-p default-directory)


;; Remove trailing white spaces
(defun my/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)

