       auto-save-list-file-prefix emacs-bk-dir)
 
 ;; http://emacsformacosx.com/ 向け設定
-(setq ns-command-modifier (quote meta))
-(setq ns-alternate-modifier (quote super))
+(setq ns-command-modifier   'meta
+      ns-alternate-modifier 'super)
 
 ;; ロックファイル(.#で始まるファイル) を無効化
 (setq create-lockfiles nil)

        path
      (file-name-directory
       (directory-file-name (kui/parent-directory path (- num 1)))))))

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

;; js-mode
(kui/after-loaded "js"
  (setq js-indent-level 2)

  (defun kui/find-node-modules-bin (binname)
    "Find executable file named BINNAME from the node_modules directory"
    (let* ((moddir (kui/traverse-parents-for "node_modules"))
           (bin (if moddir (format "%s/.bin/%s" moddir binname))))
      (if (file-executable-p bin) bin)))

  (kui/with-lib "flycheck"
    (defun kui/flycheck-set-node-modules-bin (checker binname)
      (let* ((bin (kui/find-node-modules-bin binname)))
        (when bin
          (message "auto-detect %s: %s" binname bin)
          (flycheck-set-checker-executable checker bin))))
    (defun kui/flycheck-set-checker-executable-from-node-modules ()
      (kui/flycheck-set-node-modules-bin 'javascript-jshint "jshint")
      (kui/flycheck-set-node-modules-bin 'javascript-eslint "eslint"))
    (add-hook 'js-mode-hook 'kui/flycheck-set-checker-executable-from-node-modules))
  )

;; html-mode
