aboutsummaryrefslogtreecommitdiffhomepage
path: root/pgshell/pgshell.el
blob: 60ef9e911fe712c412c11845db589a98e159c8ce (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
;; pgshell.el - Proof General for shell scripts.
;;
;; David Aspinall.  $Id$
;;
;; This instance of PG is handy just for using script management to
;; cut-and-paste into a buffer running an ordinary shell of some kind.
;;
;; I'm providing this so that tool demonstrators may use it instead of
;; tediously doing cut-and-paste of commands from a file.  No history
;; management, and nothing to do with theorem proving really!
;;
;; To use this instance of PG, visit a file with the ".pgsh" extension.
;; 
;; Feedback welcome.


(require 'proof-easy-config)           
(require 'proof-syntax)

(proof-easy-config  'pgshell	"PG-Shell"
 proof-prog-name		 "/bin/sh"       ;; or choose your shell
 proof-terminal-char             ?\;		 ;; better: parse the syntax
 proof-script-comment-start      "\#"
 proof-shell-annotated-prompt-regexp  "^.*[$] $" ;; matches shell prompts

 ;; next setting is just to prevent warning
 proof-save-command-regexp	proof-no-regexp
 )

(provide 'pgshell)