Likely the best readymade (though somewhat heavyweight) config is Doom-emacs along with this cool tutorial.
Installation fairly easy:
$ pacman -S emacs
$ git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
$ ~/.emacs.d/bin/doom install
Custom files can be modified in ~/.doom.d/
.
Use init.el
to define plugins you wish to use.
After change run doom sync
.
Emacs vanilla config
Emacs is configured via ~/.emacs.d/init.el
(similar to .vimrc
but LISP).
Usually common to first initialize package repository:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(unless package-archive-contents (package-refresh-contents))
(package-initialize)
(unless (package-installed-p 'use-package) (package-install 'use-package))
Then set variables to modify defaults (t
for true):
(custom-set-variables
'(inhibit-startup-screen t))
Most useful plugin:
(use-package evil
:ensure t
:config
(evil-mode 1))
Fun fact, you can also use org mode to configure by means of literal programming:
(require 'org)
(org-babel-load-file "~/.emacs.d/emacs-cfg.org")