 (setq shell-file-name "bash.exe")
 ;;(setq shell-file-name "f_bash")
 (setq shell-command-switch "-c")
+
 ;;;;;;;;
 ;; Additional Lisp Settings
 ;;;;;;;;
+;;;
+;; flycheck
+;;;
+;; javascript
+(flycheck-define-checker javascript-eslint-cygwin
+  "An eslint syntax checker using the ESLint under cygwin emacs."
+  :command ("eslint-cygwin.sh" "--format=checkstyle"
+            (option-list "--rulesdir" flycheck-eslint-rules-directories)
+            "--stdin" "--stdin-filename" source-inplace)
+  :standard-input t
+  :error-parser flycheck-parse-checkstyle
+  :error-filter
+  (lambda (errors)
+    (seq-do (lambda (err)
+              ;; Parse error ID from the error message
+              (setf (flycheck-error-message err)
+                    (replace-regexp-in-string
+                     (rx " ("
+                         (group (one-or-more (not (any ")"))))
+                         ")" string-end)
+                     (lambda (s)
+                       (setf (flycheck-error-id err)
+                             (match-string 1 s))
+                       "")
+                     (flycheck-error-message err))))
+            (flycheck-sanitize-errors errors))
+    errors)
+  :enabled (lambda () t)
+  :modes (js-mode js-jsx-mode js2-mode js2-jsx-mode js3-mode rjsx-mode)
+  :verify
+  (lambda (_)
+    (let* ((default-directory
+             (flycheck-compute-working-directory 'javascript-eslint))
+           (have-config (flycheck-eslint-config-exists-p)))
+      (list
+       (flycheck-verification-result-new
+        :label "config file"
+        :message (if have-config "found" "missing or incorrect")
+        :face (if have-config 'success '(bold error)))))))
+
+(setq flycheck-checkers (append flycheck-checkers '(javascript-eslint-cygwin)))
+(setq flycheck-disabled-checkers '(javascript-eslint javascript-jshint javascript-standard))
+
 ;;;
 ;; skk
 ;;;

    (let ((coding-system-for-read 'utf-8-dos))
      (goto-char
     (+ (point) (cadr (insert-file-contents "/dev/clipboard")))))))
;;;
;; ediff
;;;

(global-set-key "\C-x\C-j" 'skk-mode)
;; ▽モードと▼モード時のアンドゥ情報を記録しない
(setq skk-undo-kakutei-word-only t)

;;;;;;;;
;; *-coding-system
;;;;;;;;
