Emacs Weekly Tip #3: Learn Org-Mode

Posted: April 18th, 2011 | Filed under: Emacs | Tags: , | Comments

As my aversion to all things rodent orientated increases and my use of Emacs grows so too does my use of org-mode.

Org-Mode probably doesn’t need any introduction. It can be used for pretty much any sort of organising you require, from sketching out blog posts (this article was drafted in Org-Mode before being published to WordPress) to a full productivity and GTD suite.

The Emacs tip this week isn’t about highlighting all the useful features Org-Mode has to offer, but instead it is more of a “How-to-Learn” rather than a “How-To”.

Read the rest of this entry »

Rob Searles

After many years of denial I can now fully admit that I am a geek at heart. I love programming and web development, and I strive to continually learn.

More Posts - Twitter - Google Plus


Emacs Weekly Tip #2: Recent Files with recentf

Posted: April 11th, 2011 | Filed under: Emacs | Tags: , | Comments

In my daily Emacs activities I open a lot of files. However, during the week I am normally opening the same files as I’m generally working on the same stuff. Emacs’s Recent Files (recentf) feature generates a list of my recently used files and allows me to display that list so I can quickly open any of them.

To enable recentf mode, add the following into your Emacs init file (which you are version controlling right?)

;; recentf stuff
(require 'recentf)
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)

If you use Tramp a lot you may want to disable the auto-cleanup command for Recentf. This is simply because every now an then, if enabled, the auto-cleanup feature scans a list of your recent files, and tries to stat them to see if they should remain in the list. Obviously, if it tries to stat any remote files this may cause your system to temporarily hang.

;; recentf stuff
(require 'recentf)
(setq recentf-auto-cleanup 'never) ;; disable before we start recentf!
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)

Now use Emacs for a bit to generate a list of your recently used files. Next time you open Emacs, simply hit C-x C-r and you’ll be greeted with a list of your recently used files.

A great time saver.

For more info, visit the Emacs Wiki page.

Rob Searles

After many years of denial I can now fully admit that I am a geek at heart. I love programming and web development, and I strive to continually learn.

More Posts - Twitter - Google Plus


Awesome WM Clicky Widget

Posted: April 6th, 2011 | Filed under: Linux, Tutorials | Tags: , | Comments

Awesome WM Clicky WidgetAs some of you know, whilst Emacs is my editor (et al.) of choice my favourite window manger is Awesome. Awesome is, according to the website,

.. extremely fast, small, dynamic and heavily extensible using the Lua programming language

I’ve never delved into Lua before, but since using Awesome I’ve had to play around with a bunch of config files. They have always looked very clean and simple so, this weekend, with a spare couple of hours to kill I thought I’d have a play around with Lua and see if Awesome really is as “heavily extensible” as the claims make out.

A couple of weeks ago I set up real time web analytics on a number of sites with Clicky. Clicky have an incredibly simple API which I thought would be perfect to play around with.

I decided to try and build a widget that displays the total visitors and actions for a specified website. Really simple, but also quite useful. I had never written anything in Lua before, or even played around with widgets too much in Awesome. Fortunately both Awesome and Lua made the whole thing fantastically easy and fun. What follows is the code I wrote, use it if you want to, it’s just an example of what I did with my first attempt, so feel free to extend it as you want.

Read the rest of this entry »

Rob Searles

After many years of denial I can now fully admit that I am a geek at heart. I love programming and web development, and I strive to continually learn.

More Posts - Twitter - Google Plus


Emacs Weekly Tip #1: Version Control Emacs.d

Posted: April 4th, 2011 | Filed under: Emacs | Tags: , | Comments

Welcome to the first of my weekly Emacs top tips.

This first tip is something that I’m seeing more and more people do, especially with the excellent Emacs Starter Kit aiming to get Emacs newbies up and running quickly:
Version control your emacs.d directory.

This technique is especially useful if you have a number of development machines that you work from (desktop, laptop, remote server).  This is the reason why I started to version control my .emacs.d directory. Whilst my configuration is still very basic (for now) I find it invaluable.

Whilst it is useful to version control your configuration file, a happy side effect of the increasing prevalence of services like GitHub is that you can see other Emacs users’ setups. It is great to look at these, borrow some ideas and lean some new techniques. After some Googling, I’ve quickly compiled the  list below from GitHub, which is by no means exhaustive:

So what are you waiting for? Put your Emacs config directory into Git, share it on GitHub and post the respoitory URL in the comments below.

Rob Searles

After many years of denial I can now fully admit that I am a geek at heart. I love programming and web development, and I strive to continually learn.

More Posts - Twitter - Google Plus


Introducing Emacs Weekly Tips

Posted: April 1st, 2011 | Filed under: Emacs | Tags: , | Comments

As regular readers of my poor, infrequently updated blog may know my editor of choice is the wondrously magnificent Emacs.  One of the reasons I like Emacs is because there is so much more to learn. I can easily imagine that one could spend every day for a whole year learning a new technique, mode or snippet within Emacs and still not come close to learning all there is to know about it.

Sadly, I’m not dedicated enough to learn a new tip every day.

However,  I am going to try and learn one a week. My aim is to pick up a new Emacs top tip, use it for a week and post about it here on my blog. This should hopefully increase my knowledge of Emacs and server as a repository of this information.

So, tune in every Monday for my Emacs Tip of the Week!

For those that can’t wait, there are loads of great places for all things Emacs out there. Check out:

Rob Searles

After many years of denial I can now fully admit that I am a geek at heart. I love programming and web development, and I strive to continually learn.

More Posts - Twitter - Google Plus