Emacs

From wikinotes

Emacs is a text-editor that can be used in a GUI or a console.

TODO:

learn how to use emacs, then clean this up

Documentation

official docs https://www.gnu.org/software/emacs/documentation.html

Locations

~/.emacs main emacs config
~/.emacs.d/ emacs packages installed here

Tutorials

vim to emacs https://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-fourteen-days.html

Install

sudo pacman -S emacs

Terminology

Terminology
emacs vim description
frame window A window to the WM. Contains splits.
window A clone of the current buffer. All properties are identical between all views of buffer EXCEPT for the cursor-point.
indirect-buffer split A totally independent copy of the current buffer. Text is shared/updated, but everything else is independent.

Basics

emacs basic usage
emacs package management
emacs plugins
elisp

Minor Modes

emacs x-symbol alter display of characters by revel (like vim conceal)

Keybinding

	;; Evil-Mode Keybinding
	(define-key evil-normal-state-map (kbd "C-h") 'evil-window-left)


	;; Binding Multiple commands to a single Key-Sequence
	(define-key evil-insert-state-map (kbd "M-h") (lambda () (interactive)  (backward-char) (evil-normal-state)  ))

	;; Binding Key-Sequence to another Key-Sequence