Skip to content

Instantly share code, notes, and snippets.

@etyurkin
Created May 21, 2026 02:57
Show Gist options
  • Select an option

  • Save etyurkin/8c791f65ae2c65584f76e3edeed86900 to your computer and use it in GitHub Desktop.

Select an option

Save etyurkin/8c791f65ae2c65584f76e3edeed86900 to your computer and use it in GitHub Desktop.
Ghostty config with some Emacs keybindings
# --- Typography ---
font-family = "JetBrains Mono Nerd Font"
font-size = 14
adjust-cell-height = 2
font-thicken = true
# --- Theme and Colors ---
theme = Catppuccin Mocha
# --- Window and Appearance ---
background-opacity = 0.6
background-blur-radius = 50
macos-titlebar-style = transparent
window-padding-x = 10
window-padding-y = 8
window-save-state = always
window-theme = auto
# --- Cursor ---
cursor-style = block
cursor-style-blink = true
cursor-opacity = 0.8
shell-integration-features = no-cursor
# --- Keyboard ---
macos-option-as-alt = left
# --- Mouse ---
mouse-hide-while-typing = true
copy-on-select = clipboard
# --- Quick Terminal ---
quick-terminal-position = top
quick-terminal-screen = mouse
quick-terminal-autohide = true
quick-terminal-animation-duration = 0.15
# --- Security ---
clipboard-paste-protection = true
clipboard-paste-bracketed-safe = true
# --- Shell Integration ---
shell-integration = zsh
initial-window = true
quit-after-last-window-closed = true
notify-on-command-finish = always
# --- Performance ---
scrollback-limit = 25000000
# --- 基础分屏(左右添加屏幕)---
#keybind = cmd+d=new_split:right
#keybind = cmd+shift+enter=toggle_split_zoom
#keybind = cmd+shift+f=toggle_split_zoom
# Emacs-style Clipboard (M-w copy, C-y yank/paste)
keybind = alt+w=copy_to_clipboard
keybind = ctrl+y=paste_from_clipboard
# Emacs-style Split Management
# Split Windows (C-x 2 and C-x 3)
keybind = ctrl+x>2=new_split:down
keybind = ctrl+x>3=new_split:right
# Close Windows (C-x 0)
keybind = ctrl+x>0=close_surface
# Navigate Splits (C-x o cycles through splits)
keybind = ctrl+x>o=goto_split:next
# Windmove Navigation (C-x followed by Arrow keys)
keybind = ctrl+x>left=goto_split:left
keybind = ctrl+x>right=goto_split:right
keybind = ctrl+x>up=goto_split:up
keybind = ctrl+x>down=goto_split:down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment