 
 ;; markdown-mode
 ;; 読み込めたら *scratch* に使うから kui/autoload-if-exist じゃなくて require
-(with-pkg 'markdown-mode
+(kui/with-pkg 'markdown-mode
   (defun kui/markdown-init-set-values ()
     ;; (set (make-variable-buffer-local 'indent-tabs-mode) nil)
     (set (make-variable-buffer-local 'tab-width) 4)

  )

;; auto-complete-mode
(with-pkg 'auto-complete-config
  :package 'auto-complete

  (ac-config-default)

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

