aboutsummaryrefslogtreecommitdiff
path: root/ide/coqide.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ide/coqide.ml')
-rw-r--r--ide/coqide.ml12
1 files changed, 11 insertions, 1 deletions
diff --git a/ide/coqide.ml b/ide/coqide.ml
index 94778e0c60..5e4994eeb8 100644
--- a/ide/coqide.ml
+++ b/ide/coqide.ml
@@ -453,7 +453,7 @@ let compile sn =
|None -> flash_info "Active buffer has no name"
|Some f ->
let args = Coq.get_arguments sn.coqtop in
- let cmd = cmd_coqc#get
+ let cmd = cmd_coqc#get
^ " " ^ String.concat " " args
^ " " ^ (Filename.quote f) ^ " 2>&1"
in
@@ -766,6 +766,14 @@ let about _ =
dialog#set_authors authors;
dialog#show ()
+let latex_to_unicode =
+ cb_on_current_term (fun t ->
+ (*let show_warning s =
+ t.messages#clear;
+ t.messages#add_string s
+ in*)
+ t.script#latex_to_unicode() (*show_warning*))
+
let comment = cb_on_current_term (fun t -> t.script#comment ())
let uncomment = cb_on_current_term (fun t -> t.script#uncomment ())
@@ -1161,6 +1169,8 @@ let build_ui () =
~callback:MiscMenu.uncomment;
item "Coqtop arguments" ~label:"Coqtop _arguments"
~callback:MiscMenu.coqtop_arguments;
+ item "Latex-to-unicode" ~label:"_Latex-to-unicode" ~accel:"<Shift>space"
+ ~callback:MiscMenu.latex_to_unicode;
];
menu compile_menu [