         (require feature filename noerror))
     (error (if noerror nil (error (cadr err))))))
 
+(put 'with-pkg 'lisp-indent-function 1)
 (defmacro with-pkg (feature &rest args)
   "Install `package' and require FRETURE. Execute BODY, If FEATURE was found.
 

         (pname (cdr (assoc :packagename opts)))
         (body (nthcdr (* 2 (length opts)) args)))
    `(when (kui/package-require ,feature ,fname ,pname ,t) ,@body)))
(put 'with-pkg 'lisp-indent-function 1)

(defun kui/pop-as-assoc (keys seq)
  (let ((first (nth 0 seq)))


(when (and (kui/package-require 'flycheck nil nil t)
           (kui/package-require 'flycheck-pos-tip nil nil t))
  (custom-set-variables
      '(flycheck-display-errors-function #'flycheck-pos-tip-error-messages)))

;; company-mode
(when (kui/package-require 'company nil nil t)
