Emacs support in Pida

Embedding an editor is only the matter of two problems:

  • Let the editor receive Pida commands (for example, open or save a file).
  • Make Pida listen the editor events so that the editor can be used the usual way with pida synchronizing its views accordingly.

Both is done over DBUS now. This means your Emacs needs DBUS support(Emacs 23). You will need at least version 23.0.90.

There are several ways to get this version installed.

  • Build it from CVS trunk
  • For ubuntu use ppa
  • ...

Building from CVS Trunk

From now, I'll assume you know the basic stuff about compiling.

Go through the usual steps:

  • Get Emacs from  CVS.
  • Compile Emacs with GTK support. DBUS is enabled by default. All other compilation options are up to you.
  • Install Emacs the way you like. Remember Pida takes the first Emacs binary in the path.

Ubuntu: Use PPA

On launchpad the ubuntu-elisp-team provides Emacs 23 snapshots:  https://launchpad.net/~ubuntu-elisp/+archive/ppa For Ubuntu 8.10 Interprid you just add this to your source.list

 deb http://ppa.launchpad.net/ubuntu-elisp/ppa/ubuntu intrepid main

Finish Installation

After installing Emacs you need to ensure that this version is the first binary in your path. On Ubuntu you simply link

/etc/alternatives/emacs

to the new binary.