Jorde Kang

<-- back RSS Feed


Micro Emacs

What is micro emacs?

So micro emacs is not 1 specific program. There are a few different micro emacs-es. The common ones (or at least those I have heard of) are emacs/pk (By Linus Torvalds) and Mg (From the OpenBSD project). When I refer to micro emacs I am usually referring to my fork of the latter. This article is basically just going to be running down the changes I made and why I made them

'Kill ring' behaviour

This is probably the main reason. I really hate the way that cutting behaviour works in emacs. Specifically how the commonly used keybindings for deleting words M-d and M- overwrite whatever you have in your clipboard at that time. I have heard that its not 'overwritten' and you can go back through your clipboard history but it just seems like a waste of time to me seeing as whenever I cut a word my muscle memory is to mark it and cut it with C-w. C-k I decided to keep but I added another function M-o to delete a line without copying it but I am considering swapping them around to have deleting the line on C-k so that pretty much only C-w affects what I cut.

Mode line

The original modeline in micro emacs was a bit bloated I feel. Especially the indicators for saving and read only on the left. I have simplified that to an '!' when there is unsaved changes and '(R)' when the file is read only. There was also a 'mode' indicator but there aren't any modes outside of 'C-mode' which doesn't make any significant changes as far as I can tell. So I removed the mode indicator and C-mode.

This doesn't really deserve there is a need for this to have its own heading but I moved the 'go to top' and 'go to bottom' commands to C-x t and C-x b, C-x C-b is still used for switching buffers.

You can download it here