Move the use-package settings to init.el

This commit is contained in:
2025-05-29 18:48:22 +02:00
parent 8534e3c8d7
commit 3b53c19e2a
2 changed files with 29 additions and 36 deletions

View File

@@ -1,39 +1,3 @@
* Set up the package manager
Im a ~package.el~ user. Dont package-shame me!
** Set up the package archives
#+begin_src emacs-lisp
(require 'package)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
#+end_src
** Set up ~use-package~
It is built-in since 29.1, and lets hope I never get back using older versions, but lets stay on the safe side for now.
#+begin_src emacs-lisp
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(use-package use-package
:custom
(use-package-always-ensure t)
(use-package-verbose nil))
(use-package bind-key)
#+end_src
* Custom functions and commands
This is a collection of functions and commands i wrote or stole from all around the internet.