 
   ;; *補完リスト表示開始
   ;; (global-set-key "\C-o" 'ac-start)
-  (global-set-key "\M-/" 'ac-start)
+  (define-key ac-mode-map "\M-/" 'ac-start)
 
   ;; *補完リスト表示自動開始文字数（nil だと自動表示されない）
   (setq ac-auto-start 2)

  (defun kui/markdown-init-set-values ()
    ;; (set (make-variable-buffer-local 'indent-tabs-mode) nil)
    (set (make-variable-buffer-local 'tab-width) 4)
    (remove-hook 'before-save-hook
                 'delete-trailing-whitespace t)
    (set (make-variable-buffer-local 'whitespace-style)
         '(;; faceを使って視覚化する。
           face

;; rust-mode
(when (and (kui/autoload-if-exist 'rust-mode "rust-mode")
           (kui/package-require 'flycheck-rust nil nil t))

  ;; flycheck
  (eval-after-load 'flycheck
    '(add-hook 'flycheck-mode-hook #'flycheck-rust-setup))
  (add-hook 'rust-mode-hook #'flycheck-mode)

  ;; racer(Code Completion)
  (let* ((racer-path (executable-find "racer"))
         (racer-path (if racer-path (file-chase-links racer-path 100)))
         (racer-dir (if racer-path
                        (file-name-directory
                         (directory-file-name
                          (file-name-directory racer-path)))))
         (racer-load-path (if racer-dir
                              (concat racer-dir "editors")))
         (rust-path (getenv "RUST_SRC_PATH")))
    (when (and racer-dir
               rust-path)
      (add-to-list 'load-path racer-load-path)
      (require 'racer nil t)
      (setq racer-rust-src-path rust-path
            racer-cmd racer-path)))
  )

;; -------------------------------------------------------------------------
