January 2011 Archives

Emacs elisp snippet: jlh-join-lines

| | Comments (0) | TrackBacks (0)
I frequently find myself using join-lines in emacs (usually bound to C-x ^), which is a handy function that will merge a line with the line before it. A few times this week, I've found myself needing to join more than one line in this manner. Hitting C-x ^ multiple times is pretty tedious, so I wrote this quick bit of elisp to make this process faster. It's not complicated, but it does serve my goal of reminding myself that I should be writing elisp more often to make my life easier.
(defun jlh-join-lines (arg)
  "Join this line to the line above n times
Running this command with an argument of 1 is equivalent
to running 'delete-indentation (aka 'join-line)."
  (interactive "NHow many lines to join?: ")
  (while (> arg 0)
    (join-line)
    (setq arg (- arg 1))))
It occurred to me that there weren't enough wallpaper applications for the Android platform, so I decided to create another one. Mine is called "Wallpapr", a not too clever play on "Flickr", which is the source of all images available in the application.

What [hopefully] distinguishes this application is the workflow; "interesting" images are pulled from Flickr automatically and can be used as the system wallpaper with only two taps. A user's favorite photos are also readily available.

About this Archive

This page is an archive of entries from January 2011 listed from newest to oldest.

January 2010 is the previous archive.

March 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1