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
Contents
Table of contents
- YouTube video
- Previous Session Summary
- Where are the new lessons?
- You’re a fraud, why do you ask for money, isn’t YouTube Ads enough?
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
Ctrlheld while pressing bothxande
C-h t- Open or resume the Emacs tutorialC-x C-f- Open or create a file- Use
Tabfor path completion - If the file does not exist, Emacs creates it when you save
- Use
C-x C-s- Save the current buffer to its fileC-x b- Switch to another open bufferM-x- Run an Emacs command by name- Examples discussed:
previous-buffernext-buffermarginalia-modevertico-mode
- Examples discussed:
C-g- Cancel the current command or exit the minibufferC-x 1- Close every other window and keep only the current oneC-SPC- Start selecting text- Move the cursor to extend the selection
- Press
BackspaceorDeleteto remove it
C-a- Move to the beginning of the line- Equivalent to
Home
- Equivalent to
C-e- Move to the end of the line- Equivalent to
End
- Equivalent to
C-p- Move to the previous lineC-n- Move to the next lineC-d- Delete the character under the cursorM-<- Move to the beginning of the bufferCtrl-Home- Move to the beginning of the buffer
M->- Move to the end of the bufferCtrl-End- Move to the end of the buffer
- Arrow keys - Normal and completely valid for navigation in Emacs
- Prot uses arrow keys on an
HJKLkeyboard layer - He also maps
Home,Page Up,Page Down, andEndabove them as seen in his blogpost article
- Prot uses arrow keys on an
Important Emacs Notation
C-means to holdCtrlM-means to holdMeta, normallyOptionorAltC-x C-eis different fromC-x e- In
C-x C-e,Ctrlremains held for both keys
- In
C-x bmeans:- Press
Ctrl+x - Release
Ctrl+x - Press
b
- Press
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?
- I explain all of this in the “about me page” link below:
- youre-a-fraud-why-do-you-ask-for-money-isnt-youtube-ads-enough
- Above you’ll also find links to my discord, social media, etc
