1 of 17

Emacs��A super quick introduction

Michael Stapelberg�Zürich Gophers, 2025-Nov-06

2 of 17

Agenda

  • What is Emacs?
  • Why would you want to use it?
  • What is it like to use Emacs?
  • How do I start using Emacs?
  • The config file 👻 🐉�(+ Emacs Lisp)

3 of 17

What is Emacs?

  • Wikipedia: EMACS (“Editor MACroS”), is a family of text editors that are characterized by their extensibility�
  • GNU Emacs manual: “the extensible, customizable, self-documenting, real-time display editor”�
  • The first program released in the GNU project (in 1976),�still in development today (last release in August 2025)!

4 of 17

Why would you want to use Emacs?

  • “Everyone just uses Visual Studio Code”, right?�No! 4+ Emacs users on the Go team (and 3+ Acme users)�→ niche editors are popular in the Go space 🥳�
  • Why Emacs? I like the look and feel!�There are some really good packages for Emacs!�…maybe thanks to the extensibility? → next slides

5 of 17

Package: Magit

Magit (Git User Interface),�see → Introduction to Magit

6 of 17

Package: Eglot

Eglot (LSP support)

7 of 17

Package: TRAMP

TRAMP�(Transparent Remote Access, Multiple Protocols)

8 of 17

Package: Org Mode

Org Mode

9 of 17

Why would you want to use Emacs? (2)

  • also: opinionated helpers like ido, project, counsel;�integration for fzf, ripgrep, …�

10 of 17

Why would you want to use Emacs? (3)

  • Very customizable editor. Can build quality-of-life improvements:�“Run the Go test in which the cursor currently is” (or godoc, or…)�
  • One of the few opportunities to use a LISP in practice�can keep this to a minimum — or really celebrate tinkering!�
  • It’s possible to put your whole life into Emacs.�It’s also fine to start emacs -f magit-status and only use Magit.

11 of 17

What is it like to use Emacs?

  • Live demo:
    • set up a M-x compile loop
    • use fzf to open a file, ag to search through a project
    • use Magit to commit a change
    • self-documenting: find out what a key binding does, jump to the source of a function

12 of 17

How do I start using Emacs? (1)

  • You probably already know some key bindings from your terminal — your shell (GNU Bash, readline) got these from Emacs!�C-a → go to beginning of the line�C-e → go to the end of the line�M-b → go back one word�M-f → go forward one word�
  • Follow the Emacs tutorial to learn these (or don’t!)

13 of 17

How do I start using Emacs? (2)

  • No config file tinkering desired?�→ Spacemacs or Doom Emacs are popular (but leader key concept)�
  • From-scratch minimalist solution?�→ Read other config files, pick and choose�→ emacswiki.org

14 of 17

The config file 👻 🐉

  • Things to change: theme (I like tango dark), font�→ Emacs Theme Gallery �→ emacsthemes.com

;; This is how you’d change the theme in your ~/.config/emacs/init.el:

(load-theme 'tango-dark t)��;; Roughly similar Go code: loadTheme("tango-dark", true)

15 of 17

The config file: Emacs Lisp (2)

;; Harder-to-read example: Enable Eglot (LSP) for Go and Nix files:�(use-package eglot

:hook

(go-mode . eglot-ensure)

(nix-mode . eglot-ensure)

:config

(add-to-list 'eglot-server-programs '((nix-mode) "nixd")))

16 of 17

The config file (3)

  • Common patterns:�use-package for configuring extra packages�split into multiple files: (provide 'zkj-go) and (load "zkj-go") �Emacs looks into ~/.config/emacs (if ~/.emacs* does not exist)

17 of 17

Thank you for your attention!

  • Questions? Talk to me after the presentations :)�
  • If you want to steal bits and pieces of my config: (at your own risk!)�→ https://github.com/stapelberg/configfiles