Showing posts with label textmate. Show all posts
Showing posts with label textmate. Show all posts

Saturday, August 4, 2007

Make gedit behave roughly like Textmate

I stumbled upon an interesting blog post, which is describing howto change gedit to behave roughly like textmate. I use ubuntu freisty fawn on my devlepoment machines and it took me more than an hour to get clear about the things i have to change. Because i have to maintain some more developing machines, i packed together some useful plugins ready for copy and paste.

The available plugins can be found on the Gnome/Gedit site

Step One: Get plugins available via apt-get
  • Snippets
  • File Browser
$sudo apt-get install gedit-plugins
Step Two: Download & uncompress this file

This file contains following Plugins:
the font "monaco", the color schemes for highlighting ruby and rhtml and the mime type definitions for rhtml (Note: I can't get the mime types get to work properly. Maybe you have some suggestions?)
$tar xvzf gedit-mate.tar.gz
$cd ./gedit-mate
$ls -a
$>. .. .fonts .gconf .gnome2 plugins rhtml_definitions
Step Three: Colors for Synax Highlighting & Fonts

You can copy the folders ".fonts .gconf .gnome2" straight in your home directory. The contents of the folders are responsible for the colors of syntax_highlighting and brings you the font "monaco". Keep in mind, that you have to set the font and the background color by yourself.

$ cp -R .fonts .gconf .gnome .gnome2 ~/


Step Four: Create the MimeType for ".rhtml" files

Change in the "rhtml_definitions" directory and copy the files
$cd ./rhtml_definitions
$ sudo cp x-rhtml.xml /usr/share/mime/packages/
$ sudo cp rhtml.lang /usr/share/gtksourceview-1.0/language-specs/
Step Five: Copy the Plugins

Change in the "plugins" directory and copy all of them into /usr/lib/gedit-2/plugins
This was the only directory that worked for me. Maybe ~/.gconf/apps/gedit-2/plugins will work for you.
$cd ../plugins
$sudo cp -R ./* /usr/lib/gedit-2/plugins/
Step Six: Restart your session and enjoy.