March 11, 2013

Tracking position through a file - the awesome way

Seeing at a glance how far you are through a file can be really useful and there are many ways to acheive this. Scrollbars are one traditional way, Sublime Text’s minimap option is another - I really like this for browsing code as it gives me an idea of the ‘shape’ of the file; how methods and classes are structured for example.

I only recently discovered my favourite way of browsing through a file, and it is via the medium of Nyan Cat! Yes, you heard me right: Nyan Cat!

Nyan Cat

There exists, an Emacs plugin called nyan-mode and it is in the Melpa Package Archive. To get the small bundle of wonderment you’ll have to add these lines to your init.el somewhere

  (add-to-list 'package-archives
         '("melpa" . "http://melpa.milkbox.net/packages/") t)

  (package-install 'nyan-mode)

  (nyan-mode t)

Once you’ve added that and either evaluated it with C-x C-e or reloaded Emacs then you will be confronted with the wonderous vision below!

Nyan Mode

Enjoy!