Skip to content

impaktor/unison-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

#+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

About

Emacs mode for unison file synchronization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published