prodissues

Just A Couple Of Emacs Keybindings

Tue 23 February 2016 by yaniv

Every now and then I'll type something in Emacs with a certain goal, just to find that I get something completely different from what I've intended.

When in org file, I tried to convert a list item to a sub-header. The keybinding to make this conversion is C-c *. But when I (thought I) typed it, instead of getting a sub-header, a new buffer opened at the bottom of the frame - a calculator:

emacs-calc-mode.png

Figure 1: Calc mode

view-lossage

I had no idea how did that happen, and luckily recalled a tip I got, on how to move back in time using the view-lossage command, which display last 300 input keystrokes. Doing so, I found that instead of C-c *, I typed C-x *.

So now I know (and hopefully remember) that:

  1. There's a calculator1 in Emacs, bound to C-x *
  2. C-h l is a useful way to track back clumsy keystrokes

  1. Not that I had any doubts there is, just didn't think to look for it just yet. There are so many other "to-learn" things on my list...