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

33 lines
744 B
Org Mode

#+TITLE: Use-package
* Config
** Installation
Install use-package if it's not installed, other than that, ignore
#+begin_src emacs-lisp
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
#+end_src
** Load
#+begin_src emacs-lisp
(eval-when-compile
(require 'use-package))
#+end_src
** Misc.
*** Ensure
tell use-package to check and install packages that are configured with use-package
#+begin_src emacs-lisp
(require 'use-package-ensure)
(setq use-package-always-ensure t)
#+end_src
*** Diminish
diminish, a package for hiding minor modes from the modeline, with the help of use-package
#+begin_src emacs-lisp
(use-package diminish
:commands diminish)
#+end_src