   (global-set-key "\C-s" 'helm-occur)
   (global-set-key "\M-x" 'helm-M-x)
 
-  (after-loaded 'helm
+  (kui/after-loaded 'helm
     (define-key helm-map "\C-h" 'delete-backward-char)
     (define-key helm-map "TAB" 'helm-execute-persistent-action))
-  (after-loaded 'helm-files
+  (kui/after-loaded 'helm-files
     (define-key helm-find-files-map "\C-h" 'delete-backward-char)
     (define-key helm-find-files-map "TAB" 'helm-execute-persistent-action))
   )
 
 ;; whitespace-mode
-(with-pkg 'whitespace
+(kui/with-pkg 'whitespace
   ;; n 列以上はハイライトで警告
   ;; (setq whitespace-line-column 90)
 


  (guide-key-mode 1))

(with-pkg 'flycheck
  ;; ...
  (add-hook 'after-init-hook #'global-flycheck-mode)
  (with-pkg 'flycheck-pos-tip
    (setq flycheck-display-errors-function #'flycheck-pos-tip-error-messages))

  (global-set-key "\M-e" 'flycheck-next-error)

             (kui/package-require 'rbenv))
    (add-hook 'ruby-mode-hook 'global-rbenv-mode))

  (kui/with-pkg 'ruby-block
    (setq ruby-block-highlight-toggle 'overlay)
    (add-hook 'ruby-mode-hook '(lambda () (ruby-block-mode t))))
  )

;; coffee-mode
(kui/with-lib "coffee"
  (kui/add-to-list-if-exist 'ac-modes 'coffee-mode)
  (kui/with-pkg 'col-highlight
    (add-hook 'coffee-mode-hook 'column-highlight-mode)))
(kui/after-loaded "coffee"
  (setq coffee-tab-width 2)
  (setq coffee-debug-mode t)

