   )
 
 ;; coffee-mode
-(when (autoload-if-exist 'coffee-mode "coffee-mode"
+(when (kui/autoload-if-exist 'coffee-mode "coffee-mode"
                          "Major mode for editing coffescript files" t)
 
   (add-to-list 'auto-mode-alist '("\\.coffee\\'" . coffee-mode))

                                (if coding (format "coding:%s; " coding) "")
                                (if mode (format "mode:%s; " mode) ""))))
    (if (or coding mode)
        (insert magic-comment)
      (message "Both current coding and major-mode are nil."))))

;; 確認なしでバッファの削除
(defun kui/kill-buffer-with-no-confirmation ()
  (interactive)
  (kill-buffer nil))
(global-set-key "\C-xk" 'kui/kill-buffer-with-no-confirmation)


;; -------------------------------------------------------------------------
;; 便利な感じのマイナーモード

(setq css-indent-offset 2)

;; js-mode
(when (kui/autoload-if-exist 'js-mode "js")
  (add-to-list 'auto-mode-alist '("\\.js\\'" . js-mode))
  (add-to-list 'auto-mode-alist '("\\.json\\'" . js-mode))
  (eval-after-load "js"
