- tangle this file to init.el `M-x org-babel-tangle`
- edit the latter according to your needs
- test it with your Emacs installation, you can even run it from `M-x eshell`
emacs -q -l init.el
- put it in your `~/.emacs.d/init.el` if everything is OK
By default, Emacs knows about GNU ELPA only, add some more repositories.
(require 'package)
(setq package-archives
`(,@package-archives
("melpa" . "https://melpa.org/packages/")
;; ("marmalade" . "https://marmalade-repo.org/packages/")
("org" . "https://orgmode.org/elpa/")
;; ("user42" . "https://download.tuxfamily.org/user42/elpa/packages/")
;; ("emacswiki" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/emacswiki/")
;; ("sunrise" . "http://joseito.republika.pl/sunrise-commander/")
))
(package-initialize)
Use-package can’t install itself so we have to bootstrap it
(setq package-enable-at-startup nil)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(put 'use-package 'lisp-indent-function 1)
(setq use-package-always-ensure t)
Install Quelpa, so we can install packages directly from their sources
(use-package quelpa)
(use-package quelpa-use-package)
(use-package emrc-defaults
:ensure nil
:quelpa (emrc-defaults :repo "EmacsRuPub/emrc"
:fetcher github
:files ("emrc-defaults.el")))
(use-package emrc-dired
:ensure nil
:quelpa (emrc-dired :repo "EmacsRuPub/emrc"
:fetcher github
:files ("emrc-dired.el")))
(use-package emrc-completion-ivy
:ensure nil
:quelpa (emrc-completion-ivy :repo "EmacsRuPub/emrc"
:fetcher github
:files ("emrc-completion-ivy.el")))