summarylogtreecommitdiffstats
path: root/phreeqc.el
diff options
context:
space:
mode:
authordtbaumann2017-02-04 19:54:50 +0100
committerdtbaumann2017-02-04 19:54:50 +0100
commit72b21f4dd795b5c41e7186333237f96dc34a42b7 (patch)
treeb378a7d2a9d04a31c127a128f3cb56828fefb488 /phreeqc.el
parent4952dba82a62828fbea1891aeab75638fa2432b0 (diff)
downloadaur-72b21f4dd795b5c41e7186333237f96dc34a42b7.tar.gz
update phreeqc.el
Diffstat (limited to 'phreeqc.el')
-rw-r--r--phreeqc.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/phreeqc.el b/phreeqc.el
index 5f80d3b26a28..0a7ec6986e73 100644
--- a/phreeqc.el
+++ b/phreeqc.el
@@ -52,6 +52,11 @@
:type 'string
:group 'phreeqc)
+(defcustom phreeqc-manual-fn "/usr/share/doc/phreeqc/Phreeqc_3_2013_manual.pdf"
+ "Name and path of the default thermodynamic database."
+ :type 'string
+ :group 'phreeqc)
+
(defcustom phreeqc-indent 4
"*This variable gives the indentation in Phreeqc-Mode."
:type 'integer
@@ -89,6 +94,8 @@
'("Visit Output" . phreeqc-visit-output))
(define-key menu-map [phreeqc-compile]
'("Run Phreeqc" . phreeqc-compile))
+ (define-key menu-map [phreeqc-manual]
+ '("Phreeqc manual" . phreeqc-visit-manual))
(setq phreeqc-mode-map map)))
(defvar phreeqc-output-mode-map nil
@@ -488,6 +495,12 @@ with no args, if that value is non-nil."
(concat (file-name-sans-extension buffer-file-name) ".out"))
(phreeqc-output-mode))
+(defun phreeqc-visit-manual ()
+ "Visit PhreeqC v3 manual"
+ (interactive)
+ (find-file-other-frame phreeqc-manual-fn))
+
+
(defun phreeqc-next-output-fold ()
"Visit output from Phreeqc-Simulation and move cursor to next fold."
(interactive)