blob: 39c780dcbb672beeb637ba24070119fc3157abc3 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
;;; pgshell.el --- Proof General for shell scripts.
;; 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: David Aspinall.
;;; Commentary:
;;
;; 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.
;;; Code:
(require 'proof-easy-config)
(require 'proof-syntax)
(proof-easy-config 'pgshell "PG-Shell"
proof-prog-name "/bin/sh" ;; or your program
proof-terminal-string ";" ;; end of commands
proof-script-comment-start "\#" ;; comments
proof-shell-annotated-prompt-regexp "^.*[$] $" ;; matches prompts
proof-script-fly-past-comments t ;; nice for single-line
;; Syntax table gets font-locking and editing features for comments.
;; see Elisp documentation of `modify-syntax-entry'
proof-script-syntax-table-entries '(?\# "<" ?\n ">")
;; next setting is just to prevent warning
proof-save-command-regexp proof-no-regexp
)
(provide 'pgshell)
|