Post

Summary of the keymaps and lessons learned in the first coaching session

I'm doing a weekly coaching session with Protesilaos and we're learning vanilla Emacs from scratch, here's the keymaps learned in the first lesson

Summary of the keymaps and lessons learned in the first coaching session

Contents

Table of contents

YouTube video

Previous Session Summary

Watch the video above as everything is covered there, but if you want a quick summary of the keymaps used during the session you will find them below.

In this article we do not touch on how packages are installed or anything else, just refer to the video.

Emacs Keymaps Learned

  • C-x C-e - Evaluate the Emacs Lisp expression before the cursor
    • Place the cursor after the closing parenthesis
    • Keep Ctrl held while pressing both x and e
  • C-h t - Open or resume the Emacs tutorial
  • C-x C-f - Open or create a file
    • Use Tab for path completion
    • If the file does not exist, Emacs creates it when you save
  • C-x C-s - Save the current buffer to its file
  • C-x b - Switch to another open buffer
  • M-x - Run an Emacs command by name
    • Examples discussed:
      • previous-buffer
      • next-buffer
      • marginalia-mode
      • vertico-mode
  • C-g - Cancel the current command or exit the minibuffer
  • C-x 1 - Close every other window and keep only the current one
  • C-SPC - Start selecting text
    • Move the cursor to extend the selection
    • Press Backspace or Delete to remove it
  • C-a - Move to the beginning of the line
    • Equivalent to Home
  • C-e - Move to the end of the line
    • Equivalent to End
  • C-p - Move to the previous line
  • C-n - Move to the next line
  • C-d - Delete the character under the cursor
  • M-< - Move to the beginning of the buffer
    • Ctrl-Home - Move to the beginning of the buffer
  • M-> - Move to the end of the buffer
    • Ctrl-End - Move to the end of the buffer
  • Arrow keys - Normal and completely valid for navigation in Emacs

Important Emacs Notation

  • C- means to hold Ctrl
  • M- means to hold Meta, normally Option or Alt
  • C-x C-e is different from C-x e
    • In C-x C-e, Ctrl remains held for both keys
  • C-x b means:
    • Press Ctrl+x
    • Release Ctrl+x
    • Press b

My Emacs config

You can find this in my dotfiles, I’ll leave a permalink here for the changes done during that session.

Keep in mind that the location of this file may change over time and the file itself could change as well, but if you want to follow along the video here’s the config

Where are the new lessons?

This first video was edited and moved to the new podcast channel

This is the only video that will be in that channel, the rest of the videos will be in my main channel in a playlist called The Church Of Prot

Those videos won’t be edited after the session and will remain there.

Unless I wake up one day and decide to move shit around, we don’t know.

You’re a fraud, why do you ask for money, isn’t YouTube Ads enough?

This post is licensed under CC BY 4.0 by the author.