commit 586f1884c4b1baf5c073a066081ed21a493ccfd2 from: Omar Polo date: Mon May 23 16:00:46 2022 UTC +mg commit - f6de1c6a36b9af312b5f88d6548d6c2b71957d50 commit + 586f1884c4b1baf5c073a066081ed21a493ccfd2 blob - 7be3f366f8585a6bfd94549beee0cd96044ebf86 blob + 85c8265874cbb615f77fd7a93ef384bcb657d67b --- gen +++ gen @@ -62,6 +62,7 @@ pair lib/profile rc.lp pair .sqliterc sqliterc.lp pair .psqlrc psqlrc.lp pair .cwmrc cwmrc.lp +pair mg mg.lp pair bin/acmerc bin/acmerc.lp +x pair bin/amused-monitor bin/amused-monitor.lp +x blob - /dev/null blob + 350520f1867999e399e8ad9a281f06d3971211ba (mode 644) --- /dev/null +++ mg.lp @@ -0,0 +1,45 @@ +# mg -- micro emacs + +mg is an Emacs clone. Well, it's more minimal, it doesn't have any +scripting language etc, but it has mostly the same keybindings as Emacs. +Having it in base on OpenBSD is a Godsent. + + set-fill-column 72 + meta-key-mode + +Set some defaults. `meta-key-mode' in particular is incredibly helpful +because it allows to enter non-ASCII characters. mg still doesn't know +how to render those (so you get "\303\250" instead of รจ), but at least +you can input them! + + backup-to-home-directory + +I don't like to have the whole filesystem dirtied by all those backup +files. This moves them in ~/.mg.d in case I need them. + + define-key compile "n" next-line + define-key compile "p" previous-line + define-key compile "q" delete-window + +Mg doesn't have many (any?) keybinding defined in compile-mode. This +turns it into something that resambles Emacs a bit more and it's +handier. + + global-set-key "\^cm" compile + global-set-key "\eg\eg" goto-line + +compile is handy to have and while here bind "M-g M-g" to goto-line, +just as in Emacs. + + auto-execute *.[ch] c-mode + auto-execute *.[ch] auto-fill-mode + + auto-execute README* auto-fill-mode + auto-execute *.txt auto-fill-mode + auto-execute *.md auto-fill-mode + auto-execute *.[1-9] auto-fill-mode + + auto-execute * auto-indent-mode + +`auto-execute' is similar to add-hook. Set some default stuff for files +matching those patterns.