 ;; swiper
 ;;;;;;;;
 (require-if-not 'swiper)
-;; swiper use M-s as the prefix.
-(global-set-key (kbd "M-s M-s") 'swiper)
-(global-set-key (kbd "C-s") 'swiper-isearch)
-(global-set-key (kbd "C-r") 'swiper-isearch-backward)
-(global-set-key (kbd "M-s s") 'swiper-thing-at-point)
+(with-eval-after-load "swiper"
+  ;; swiper use M-s as the prefix.
+  (global-set-key (kbd "M-s M-s") 'swiper)
+  (global-set-key (kbd "C-s") 'swiper-isearch)
+  (global-set-key (kbd "C-r") 'swiper-isearch-backward)
+  (global-set-key (kbd "M-s s") 'swiper-thing-at-point))
 
 ;;;;;;;;
 ;; undo-tree

(setq skk-aux-large-jisyo nil)
;; ▽モードと▼モード時のアンドゥ情報を記録しない
(setq skk-undo-kakutei-word-only t)
;; C-x j のskk-auto-fill-modeは使わない
(global-set-key "\C-xj" 'skk-mode)
(global-set-key "\C-x\C-j" 'skk-mode)

;;;;;;;;
;; slime

;; counsel
;;;;;;;;
(require-if-not 'counsel)
(with-eval-after-load "counsel"
  (global-set-key (kbd "M-x") 'counsel-M-x)
  (global-set-key (kbd "C-x C-f") 'counsel-find-file)
  (global-set-key (kbd "<f1> f") 'counsel-describe-function)
  (global-set-key (kbd "<f1> v") 'counsel-describe-variable)
  (global-set-key (kbd "<f1> o") 'counsel-describe-symbol)
  (global-set-key (kbd "<f1> l") 'counsel-find-library)
  (global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
  (global-set-key (kbd "<f2> u") 'counsel-unicode-char)
  (define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
  (global-set-key (kbd "C-c C-f") 'find-file))

;;;;;;;;
;;  emmet-mode
