   (define-key helm-map (kbd "C-z") 'helm-select-action)
   (setq helm-mode-fuzzy-match t))
 
+;; Flycheck
 (use-package flycheck
   :init
   (dolist (hook '(org-mode-hook))

(transient-mark-mode t)
(setq x-select-enable-clipboard t)

;; Theme
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'spacemacs-dark t)

(use-package powerline
  :ensure t
  :config (powerline-default-theme))

(use-package autopair
  :init
  (dolist (hook '(prog-mode-hook conf-mode-hook))
    (add-hook hook #'autopair-mode)))

(use-package whitespace
  :init
  (dolist (hook '(prog-mode-hook conf-mode-hook))

  :init (neotree-show)
  :bind (([f4] . neotree-toggle)))

;; Cide
(use-package cider
  :ensure t
  :config
  (add-hook 'cider-mode-hook #'eldoc-mode)
  (add-hook 'cider-repl-mode-hook #'paredit-mode))

;; Useful definitions

(defun lorem-ipsum ()
  "Insert a lorem ipsum."
    (interactive)
      (insert "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
              "eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim"
              "ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
              "aliquip ex ea commodo consequat. Duis aute irure dolor in "
              "reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
              "pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
              "culpa qui officia deserunt mollit anim id est laborum."))

(defun insert-date ()
  "Insert a time-stamp according to locale's date and time format."
  (interactive)
  (insert (format-time-string "%m_%d_%y" (current-time))))
