Browse Source

Move package.el initialisation to configuration.org

master
Gergely Polonkai 3 years ago
parent
commit
99e39400de
  1. 17
      configuration.org
  2. 12
      init.el

17
configuration.org

@ -1,5 +1,22 @@
* Emacs configuration
** Set up the package archives
#+BEGIN_SRC emacs-lisp
(require 'package)
(add-to-list 'package-archives
'("gnu" . "http://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)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(package-initialize)
#+END_SRC
** Configure ~use-package~ and preload ~bind-key~
#+BEGIN_SRC emacs-lisp

12
init.el

@ -9,18 +9,6 @@
;; Initialize the package system and use-package
(setq load-prefer-newer t)
(require 'package)
(add-to-list 'package-archives
'("gnu" . "http://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)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(package-initialize)
;; I started moving my configuration to this Org file. It’s easier to document this way.
(org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))

Loading…
Cancel
Save