#+TITLE unison-mode
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.
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))
The key binding C-c C-c
launches unison. Default command is
unison-gtk2
. This can be set with:
(defvar unison-command "unison-gtk2")
Screenshot from emacs using zenburn-theme.