 
   (guide-key-mode 1))
 
-(when (kui/package-require 'flycheck nil nil t)
+(when (and (kui/package-require 'flycheck nil nil t)
+           (kui/package-require 'flycheck-pos-tip nil nil t))
   ;; ...
+  (eval-after-load 'flycheck
+    '(custom-set-variables
+      '(flycheck-display-errors-function #'flycheck-pos-tip-error-messages)))
   )
 
 ;; auto-complete-mode

  (add-to-list 'ac-modes 'haml-mode))

;; rust-mode
(when (kui/autoload-if-exist 'rust-mode "rust-mode")
  ;; ...
  )

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

     (defvar flymake-display-err-before-line nil)
     (defvar flymake-display-err-before-colmun nil)

     (when window-system
       (set-face-attribute 'flymake-errline nil
                           :foreground nil
                           :background nil
                           :inherit nil))

     (when (require 'popup nil t)

