                           (message "prev error")
                           (flymake-goto-prev-error)
                           (flymake-display-err-menu-for-current-line)))
-     )))
+       )))
 
 (when (kui/package-require 'helm nil nil t)
 

  (global-set-key "\M-x" 'helm-M-x)

  (eval-after-load 'helm
  '(progn
     (define-key helm-map "\C-h" 'delete-backward-char)
     (define-key helm-map "TAB" 'helm-execute-persistent-action)
     ))
  (eval-after-load 'helm-files
  '(progn
     (define-key helm-find-files-map "\C-h" 'delete-backward-char)
     (define-key helm-find-files-map "TAB" 'helm-execute-persistent-action)
     ))
  )

;; whitespace-mode

      (switch-to-buffer "*scratch*")
    (switch-to-buffer "*scratch*")
    (insert initial-scratch-message)))

(defun kui/current-minor-modes ()
  "Return minor modes on the current buffer"
  (remove-if
   (lambda (mode)
     (not (and (boundp mode) (symbol-value mode)
               (fboundp (or (get mode :minor-mode-function) mode)))))
   minor-mode-list))

(defun kui/active-minor-modep (mode)
  "Return MODE if MODE was activate on the current buffer,
but if not, return nil."
  (find-if (lambda (m) (eq m mode)) (kui/current-minor-modes)))

;; backindentation
;; (defun kui/backindent ()
