Skip to content

Instantly share code, notes, and snippets.

@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active May 17, 2026 05:42
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@umputun
umputun / plan-annotate.py
Created February 15, 2026 18:27
plan-annotate.py - Claude Code hook for interactive plan review via kitty overlay editor
#!/usr/bin/env python3
"""plan-annotate.py - PreToolUse hook for ExitPlanMode.
interactive plan review hook that lets you annotate Claude's plans directly
in your editor before approving them. when Claude calls ExitPlanMode, this
hook intercepts the call, opens the plan in $EDITOR via a kitty terminal
overlay, and waits for you to review/edit. if you make changes, the hook
computes a unified diff and sends it back to Claude as a denial reason,
forcing Claude to revise the plan based on your annotations. if you make
no changes, the normal approval dialog appears.