Archive for March, 2007

Taskr

Ok, I added insert to it. It was easier than I thought.

Fuse

A while ago I tried Fuse. It was an awesome idea, but in Vim I was getting strange errors that the file had changed when I would try to save stuff. Something about “File has changed on disk”. So I bagged it since I didn’t feel like tracking down where the problem was.

Having switched to Emacs, I was looking at Tramp and I remembered Fuse and sshfs, and thought that seemed like a better idea. I installed fuse and sshfs and mounted the dir in my ~/. It’s working pretty well so far. I didn’t try to edit things in Vim, that may work fine, but in emacs it seems to work well.

I added the mount to my startup script, and plan to try to use that for my remote file editing. This way I don’t have to worry about installing GnuEmacs on every server I admin. We’ll see.

Taskr

I wrote a command line ToDo list manager in ruby this morning. It’s not feature complete and it’s not uber robust. It’s for small ToDo lists. You can get it here if you like.


sudo cp taskr.rb /usr/bin/taskr
taskr -h

-i isn’t there yet, gotta save something .02 :)

Hey neato!

I was playing around this morning messing with Rails and I tried the following.


  def index
    @foo = ["foo", "bar", "baz"].each do |f|
      f
    end
  end

And it worked. Holy dynamic batman! Apparently you can just put crap into a computer and it will know what you mean! Seriously though, I thought that was fun to assign the output of a block like that.

Emacs Shell Command Tab Completion

w00t! Found it. I have been using the shell command a lot in the minibuffer, but it didn’t have tab completion. To paraphrase something I read on the Emacs list the other day…”Saying, ‘you can’t do that in Emacs’, is usually false”. I found this lisp file (script?)

Emacs tip #1

I figure I can post emacs tips as I run across them.

If you often open the same buffers everytime you start Emacs, you can save them so that upon reopen they are already there and open.

Get everything the way you want, and do

  M-x desktop-save

Then in your .emacs file

  (desktop-read)

That will open all the buffers from the desktop-save session, and you are ready to go.

« Previous Page