/unison-mode

Emacs mode for unison file synchronization

Primary LanguageEmacs Lisp

#+TITLE unison-mode

Introduction

This mode was written to add syntax highlighting to unison configuration files, and also as an exercise for myself to learn to write a major mode for Emacs.

Install

Put the file unison-mode.el in your load-path. If you do not have a load path, then add one, that points to the folder where you placed the file:

(add-to-list 'load-path "~/.emacs.d/elisp/")

Secondly, to use the mode for all *prf files:

(autoload 'unison-mode "unison-mode" "my unison mode" t)
(setq auto-mode-alist (append '(("\\.prf$" . unison-mode)) auto-mode-alist))

Usage

The key binding C-c C-c launches unison. Default command is unison-gtk2. This can be set with:

(defvar unison-command "unison-gtk2")

Example

Screenshot from emacs using zenburn-theme.

examples/screenshot.png