 (define-key sp-keymap (kbd "C-c M-a") 'sp-copy-to-beginning-of-sexp)
 (define-key sp-keymap (kbd "C-c M-e") 'sp-copy-to-end-of-sexp)
 
-(load-lazy '(toggle-quotes) "toggle-quotes")
-(global-set-key (kbd "C-'") 'toggle-quotes)
+(use-package toggle-quotes
+  :commands (toggle-quotes)
+  :bind ("C-'" . toggle-quotes))
+
 ;; don't use shift to mark things; smartparens overwrites this anyway, but be explicit about it
 (setq shift-select-mode nil)
 

        (make-directory dir)))))

;; gist
(use-package gist)
(setq gist-view-gist t)

;; go to last change
;; http://www.emacswiki.org/emacs/GotoChg
(use-package goto-last-change)
(global-set-key [f8] 'goto-last-change)

;; Some saner clipboard

(use-package winner)
(add-to-list 'winner-boring-buffers "*helm M-x*")
(add-to-list 'winner-boring-buffers "*helm mini*")
(use-package winner
  :config
  (add-to-list 'winner-boring-buffers "*helm M-x*")
  (add-to-list 'winner-boring-buffers "*helm mini*"))


;; recent files
(use-package recentf
  :config
  (setq recentf-max-saved-items 1000)
  (setq recentf-save-file (emacs-d "cache/recentf"))
  (setq recentf-exclude (append recentf-exclude
                                '("\.emacs\.d/cache"
                                  "\.emacs\.d/elpa")))
  (setq recentf-keep '(file-remote-p file-readable-p))
  (recentf-mode 1))

;; clean up buffers every once in a while
(use-package midnight)
