        (global-set-key "\M-e"
                        '(lambda ()
                           (interactive)
-                          (let ()
-                            (message "next error")
-                            (flymake-goto-next-error)
-                          (flymake-display-err-menu-for-current-line))))
-     (global-set-key "\M-E"
-                     '(lambda ()
-                        (interactive)
-                        (let ()
+                          (message "next error")
+                          (flymake-goto-next-error)
+                          (flymake-display-err-menu-for-current-line)))
+       (global-set-key "\M-E"
+                       '(lambda ()
+                          (interactive)
                           (message "prev error")
                           (flymake-goto-prev-error)
-                          (flymake-display-err-menu-for-current-line))))
-
-     (unless flymake-display-err-timer
-       (setq flymake-display-err-timer
-             (run-with-idle-timer flymake-display-err-delay
-                                  t
-                                  'flymake-display-err-menu-for-current-line)))
-
-     ;; (defvar flymake-display-err-delay 0.5
-     ;;  "delay to display flymake error message ")
-     ;; (defvar flymake-display-err-timer nil
-     ;;  "timer for flymake-display-err-menu-for-current-line")
-
-     ;; (defun flymake-display-err-set-timer ()
-     ;;  (unless flymake-display-err-timer
-     ;;  (setq flymake-display-err-timer
-     ;;        (run-with-idle-timer flymake-display-err-delay
-     ;;                          nil
-     ;;                          'flymake-display-err-menu-for-current-line))))
-
-     ;; (defun flymake-display-err-cancel-timer ()
-     ;;  (when (timerp flymake-display-err-timer)
-     ;;  (cancel-timer flymake-display-err-timer)
-     ;;  (setq flymake-display-err-timer nil)))
+                          (flymake-display-err-menu-for-current-line)))
+
+       (unless flymake-display-err-timer
+         (setq flymake-display-err-timer
+               (run-with-idle-timer flymake-display-err-delay
+                                    t
+                                    'flymake-display-err-menu-for-current-line)))
      )))
 
 ;; anything


;; yaml-mode
(when (kui/autoload-if-exist 'yaml-mode "yaml-mode"
                         "Major mode for editing yaml files" t)

  (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
  (eval-after-load "yaml-mode"

;; 実行可能なコマンドを返す
(defun kui/find-if-executable (seq)
  "Find and Return first executable command in SEQ."
  (find-if (lambda (cmd) (executable-find cmd)) seq))

;; *scratch* バッファに切り替え（消してしまっていたら作成）
(defun kui/switch-to-scratch-buffer ()
