aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/lego/lego-site.el
blob: 1a31f3547ea24c0164353c32939416ee3031be90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;; lego-site.el --- Site-specific Emacs support for LEGO

;; This file is part of Proof General.

;; Portions © Copyright 1994-2012  David Aspinall and University of Edinburgh
;; Portions © Copyright 2003, 2012, 2014  Free Software Foundation, Inc.
;; Portions © Copyright 2001-2017  Pierre Courtieu
;; Portions © Copyright 2010, 2016  Erik Martin-Dorel
;; Portions © Copyright 2011-2013, 2016-2017  Hendrik Tews
;; Portions © Copyright 2015-2017  Clément Pit-Claudel

;;; Author: Thomas Kleymann <T.Kleymann@ed.ac.uk>
;;; Maintainer: lego@dcs.ed.ac.uk

;;; Commentary:
;;

;;; Code:

(let ((version (getenv "PROOFGENERAL")))
  (cond ((not version)		;default
	 (setq load-path
	       (cons "/usr/local/share/elisp/script-management" load-path))
	 (setq load-path
	       (cons "/usr/local/share/elisp/script-management/lego" load-path))
	 (setq auto-mode-alist (cons '("\\.l$" . lego-mode) auto-mode-alist))
	 (autoload 'lego-mode "lego" "Major mode for editing Lego proof scripts." t))
	((string= version "ancient") 
	 (setq load-path (cons "/usr/local/share/elisp/lego" load-path))
	 (setq auto-mode-alist (cons '("\\.l$" . lego-mode) auto-mode-alist))
	 (autoload 'lego-mode "lego" "Major mode for editing Lego proof scripts." t)
	 (autoload 'lego-shell "lego" "Inferior shell invoking lego." t))
	((string= version "latest")
	 (load-file "/usr/local/share/elisp/ProofGeneral/generic/proof-site.el"))))