commit 58ba28617d6a6c7b73a4585739f8e0b7764de27b from: Sara Burke date: Sun Feb 15 23:48:43 2026 UTC add .mg replicating some of .exrc commit - fac84c88a5edac65a47e6e988c5634559fa304db commit + 58ba28617d6a6c7b73a4585739f8e0b7764de27b blob - /dev/null blob + 70fdff374ac068618891b3fa0feb935ffbd1516b (mode 644) --- /dev/null +++ .mg @@ -0,0 +1,30 @@ +; ~/.mg -- mg configuration +; Ported from ~/.exrc and ~/.nexrc where possible +; mg is a minimal Emacs clone; most vi settings don't apply + +; --- Core editing --- +set-default-mode indent ; autoindent (from: set autoindent) +set-tab-width 8 ; tabstop=8 + +; --- Display --- +column-number-mode ; ruler equivalent (column) +line-number-mode ; ruler equivalent (line) + +; --- Matching delimiters (showmatch equivalent) --- +; ) is already bound to blink-and-insert by default +global-set-key "]" blink-and-insert +global-set-key "}" blink-and-insert + +; --- Search --- +; Incremental search is default (C-s / C-r) — matches searchincr +; Case-fold search is default — closest to iclower + +; --- Build/utility keybindings (Emacs-style, C-c prefix) --- +; C-c namespace is free except C-c s (cscope) +global-set-key "\^cm" compile ; ,m → save+make +global-set-key "\^cr" revert-buffer ; ^R → reload file +global-set-key "\^cl" shell-command ; ,l → prompts for command (e.g. shellcheck) +global-set-key "\^ct" shell-command ; ,t → prompts for command (e.g. make test) + +; --- Backup files --- +backup-to-home-directory ; store in ~/.mg.d/ instead of cwd