 ;; set mode for markdown files.
 (use-package markdown-mode
   :ensure t
-  :mode (" \\.md\\" . markdown-mode))
+  :mode ("\\.md\\'" . markdown-mode)
+  )
 
 ;; set ido mode. tis enhace emac's search
 (use-package ido

    )
  )

(use-package all-the-icons)

;; setup ag search
(use-package ag

;; changed lines
(use-package ws-butler
  :ensure
  :init
  (add-hook 'prog-mode-hook #'ws-butler-mode)
)

;; package to smartly reason about parenthesis on code.
(use-package smartparens
