All Projects → robert-strandh → Second Climacs

robert-strandh / Second Climacs

Version 2 of the Climacs text editor.

Second Climacs: An Emacs-like editor

Second Climacs is an Emacs-like editor written entirely in Common Lisp. It is called Second Climacs because it is a complete rewrite of the Climacs text editor.

Improvements

Climacs gave us some significant experenice with writing a text editor, and we think we can improve on a number of aspects of it. As a result, there are some major differences between Climacs and Second Climacs:

  • We implemented a better buffer representation, and extracted it from the editor code into a separate library named Cluffer. The new buffer representation will have better performance, especially on large buffers, and it will make it easier to write sophisticated parsers for buffer contents.

  • The incremental parser for Common Lisp syntax of Climacs is very hard to maintain, and while it is better than that of Emacs, it is still not good enough. Second Climacs uses a modified version of the Common Lisp reader in order to parse buffer contents, making it much closer to the way the contents is read by the Common Lisp compiler.

  • Climacs depends on McCLIM for its graphic user interface. Second Climacs is independent of any particular library for making graphic user interfaces, allowing it to be configured with different such libraries. Though, at the moment, the only graphic user interface that exists uses McCLIM.

Quick Start

  1. Make sure you have installed the dependencies:

The bash script get-dependencies.sh will do this work for you.

  1. Clone the source with git:

    $ git clone https://github.com/robert-strandh/Second-Climacs
    $ cd Second-Climacs
    
  2. Make sure the top-level directory can be found by ASDF.

  3. Compile the editor system as follows:

    (asdf:load-system :second-climacs-clim)
    
  4. To start Second Climacs, execute this form:

    (second-climacs-clim-base:climacs)
    

Documentation

Check the Documentation directory for more information.

Commands

At the moment, all you can do is type some text, and you can use C-x i to insert and existing file. Some basic Emacs commands also work, like C-f, C-b, C-p, C-n, M-<, M->, and C-x C-c. The visible window does not automatically follow the cursor yet.

Contributing

I am not accepting contributions at this time. I will make an exception for someone who is highly motivated and willing to spend time understanding the goals of the project, and then only after discussing the ideas with me.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].