Recently in Emacs Category

Emacs Major Mode: LESS CSS

| | Comments (0) | TrackBacks (0)

I'm a big fan of LESS, so naturally I decided to write an emacs major mode to support it. It's rather rudimentary at this point, but it's far better than working in fundamental-mode. If you're a user of both LESS and emacs, give it a shot and let me know what you think.

http://jdhuntington.com/emacs/less-css-mode.el

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))))

About this Archive

This page is a archive of recent entries in the Emacs category.

Android is the previous category.

Ruby is the next category.

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

March 2011: Monthly Archives

Pages

Powered by Movable Type 4.1