 (require 'helm-grep)
 (require 'helm-eshell)
 (require 'helm-buffers)
-;;(package-install 'helm-swoop)
-(require 'helm-swoop)
+
+(use-package helm-swoop
+  :ensure helm-swoop)
+
 (global-set-key (kbd "M-C-s") 'helm-swoop)
 (global-set-key (kbd "C-s") 'isearch-forward-regexp)
 (global-set-key (kbd "C-r") 'isearch-backward-regexp)

(setq-default indent-tabs-mode nil)

;; Automatically closes brackets.
(unless (fboundp 'smartparens-mode)
  (package-install 'smartparens))
(require 'smartparens)
(smartparens-global-mode)
(show-smartparens-global-mode +1)
(electric-indent-mode)

;; Partially use path in buffer name.
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)

;; Get rid of splash screens.

(set-face-attribute 'linum nil :background "#333333")
(set-face-attribute 'fringe nil :background "#333333")

(use-package ido-vertical-mode
  :ensure ido-vertical-mode)
(ido-vertical-mode)

(use-package markdown-mode+
  :ensure markdown-mode+)
(autoload 'markdown-mode "markdown-mode"
  "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
