 (global-set-key (kbd "C-e") 'smart-end-of-line)
 
 ;; move lines like in org-mode
-(use-package move-dup)
-(global-set-key (kbd "M-<up>") 'md/move-lines-up)
-(global-set-key (kbd "M-<down>") 'md/move-lines-down)
+(use-package move-dup
+  :config
+  (global-set-key (kbd "M-<up>") 'md/move-lines-up)
+  (global-set-key (kbd "M-<down>") 'md/move-lines-down))
 
 ;; org-mode has similar behavior built-in, so use it instead
 (load-after 'org-mode

;; diff- mode (better colors)
(use-package diff-mode-)
;; a slightly saner diff command
(use-package ediff)
(setq ediff-diff-options "-w")

;; if no region is active, act on current line
(use-package whole-line-or-region)
(setq whole-line-or-region-extensions-alist
      '((comment-dwim whole-line-or-region-comment-dwim-2 nil)
        (copy-region-as-kill whole-line-or-region-copy-region-as-kill nil)

(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)

(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)

