Skip to content

Instantly share code, notes, and snippets.

@pesterhazy
Last active January 25, 2024 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pesterhazy/be940a7868afb74a986d5b156855a145 to your computer and use it in GitHub Desktop.
Save pesterhazy/be940a7868afb74a986d5b156855a145 to your computer and use it in GitHub Desktop.
Setting up macOS

This guide helps me set up my macOS laptop in a fairly simple manner. I'll need to go back to this guide roughly every 2–3 years. Maybe it'll help you, too!

Smart Caps Lock

Use Karabiner Elements

Map Caps Lock to Ctrl (when long-pressed) or Escape (when tapped). See this guide

Put backtick/tilde character to the left of 1 key

Use Karabiner Elements

adding the following entry in Simple Modification – For all devices – non_us_backslash -> grave_accent_and_titlde.

On a German keyboard, this changes caret key to produce the backtick/tilde characters, which is very frequently needed for coding and hard to reach when it's to the left to the Y/Z key.

Faster key repeat

Gotta go faster than the defaults

defaults write -g InitialKeyRepeat -int 13
defaults write -g KeyRepeat -int 1 

You need to log out and log in again to make these settings take effect. source

Software

Necessary

Optional

  • cleanshot X - screenshots that you can draw on. I didn't know I needed this! Best feature: you can OCR strings on your screen ("Capture Text")

Homebrew

The package manager for macOS that's not great but kinda works

Create the initial version of the Brewfile:

brew bundle dump

Re-install from scratch

brew bundle --force --cleanup

Emacs

This distribution works best for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment