emacs-config/init.org.d/25-use-package.org

744 B

Use-package

Config

Installation

Install use-package if it's not installed, other than that, ignore

  (unless (package-installed-p 'use-package)
    (package-refresh-contents)
    (package-install 'use-package))

Load

  (eval-when-compile
  (require 'use-package))

Misc.

Ensure

tell use-package to check and install packages that are configured with use-package

  (require 'use-package-ensure)
  (setq use-package-always-ensure t)

Diminish

diminish, a package for hiding minor modes from the modeline, with the help of use-package

  (use-package diminish
    :commands diminish)