aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorppedrot2012-04-27 15:31:30 +0000
committerppedrot2012-04-27 15:31:30 +0000
commitbbf334b38ae4c57b4d619a8f98acc488077efca4 (patch)
tree91b013df3287c9a806971c1b8c47c5c519125a0f /ide
parent9af3413edd3c82e99766bb3c2541d1cf8920c006 (diff)
Removed the quasi-useless gtk2rc file and the documentation that went with it. Now CoqIDE is not anymore totally irrespectful of the local configuration of themes, in particular w.r.t. to menu fonts.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15251 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/FAQ25
-rw-r--r--ide/coqide-gtk2rc39
-rw-r--r--ide/coqide_main.ml48
3 files changed, 7 insertions, 65 deletions
diff --git a/ide/FAQ b/ide/FAQ
index f07f229fc3..07b818246a 100644
--- a/ide/FAQ
+++ b/ide/FAQ
@@ -6,8 +6,8 @@ R0: A powerfull graphical interface for Coq. See http://coq.inria.fr. for more i
Q1) How to enable Emacs keybindings?
R1: Insert
gtk-key-theme-name = "Emacs"
- in your "coqide-gtk2rc" file. It should be in $XDG_CONFIG_DIRS/coq dir.
- This is done by default.
+in your gtkrc file. The location of this file is system-dependent. If you're running
+Gnome, you may use the graphical configuration tools.
Q2) How to enable antialiased fonts?
R2) Set the GDK_USE_XFT variable to 1. This is by default with Gtk >= 2.2.
@@ -34,27 +34,14 @@ R5)-First solution : type "<CONTROL><SHIFT>2200" to enter a forall in the script
2200 is the hexadecimal code for forall in unicode charts and is encoded as "∀"
in UTF-8.
2203 is for exists. See http://www.unicode.org for more codes.
--Second solution : rebind "<AltGr>a" to forall and "<AltGr>e" to exists.
- Under X11, you need to use something like
- xmodmap -e "keycode 24 = a A F13 F13"
- xmodmap -e "keycode 26 = e E F14 F14"
- and then to add
- bind "F13" {"insert-at-cursor" ("∀")}
- bind "F14" {"insert-at-cursor" ("∃")}
- to your "binding "text"" section in coqiderc-gtk2rc.
- The strange ("∀") argument is the UTF-8 encoding for
- 0x2200.
- You can compute these encodings using the lablgtk2 toplevel with
- Glib.Utf8.from_unichar 0x2200;;
- Further symbols can be bound on higher Fxx keys or on even on other keys you
- do not need .
+-Second solution : Use an input method editor, such as SCIM or iBus. The latter offers
+a module for LaTeX-like inputting.
Q6) How to customize the shortcuts for menus?
R6) Two solutions are offered:
- Edit $XDG_CONFIG_HOME/coq/coqide.keys by hand or
- - Add "gtk-can-change-accels = 1" in your coqide-gtk2rc file. Then
- from CoqIde, you may select a menu entry and press the desired
- shortcut.
+ - If your system allows it, from CoqIde, you may select a menu entry and press the
+ desired shortcut.
Q7) What encoding should I use? What is this \x{iiii} in my file?
R7) The encoding option is related to the way files are saved.
diff --git a/ide/coqide-gtk2rc b/ide/coqide-gtk2rc
deleted file mode 100644
index 9da99551b4..0000000000
--- a/ide/coqide-gtk2rc
+++ /dev/null
@@ -1,39 +0,0 @@
-# Some default functions for CoqIde. You may copy the file in $XDG_CONFIG_HOME
-# ($HOME/.config/coq/) and edit as you want. See
-# http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html
-# for a complete set of options
-# To set the font of the text windows, edit the .coqiderc file through the menus.
-
-gtk-key-theme-name = "Emacs"
-
-#pixmap_path "/home/"
-
-binding "text" {
- bind "<ctrl>k" { "set-anchor" ()
- "move-cursor" (display-line-ends,1,0)
- "move-cursor" (visual-positions,1,0)
- "cut-clipboard" ()
- }
- bind "<ctrl>w" { "cut-clipboard" () }
-
-# For UTF-8 inputs !
-# bind "F11" {"insert-at-cursor" ("∀")}
-# bind "F12" {"insert-at-cursor" ("∃")}
-}
-class "GtkTextView" binding "text"
-
-
-gtk-font-name = "Sans 12"
-
-style "location" {
-font_name = "Sans 10"
-}
-widget "*location*" style "location"
-
-
-gtk-can-change-accels = 1
-
-style "men" {
-#
-}
-widget "GtkMenu" style "men"
diff --git a/ide/coqide_main.ml4 b/ide/coqide_main.ml4
index db2b2361c2..1e71b8da41 100644
--- a/ide/coqide_main.ml4
+++ b/ide/coqide_main.ml4
@@ -67,13 +67,7 @@ END
let () =
Coqide.ignore_break ();
ignore (GtkMain.Main.init ());
- initmac () ;
- (try
- let gtkrcdir = List.find
- (fun x -> Sys.file_exists (Filename.concat x "coqide-gtk2rc"))
- Minilib.xdg_config_dirs in
- GtkMain.Rc.add_default_file (Filename.concat gtkrcdir "coqide-gtk2rc");
- with Not_found -> ());
+ initmac ();
(* Statup preferences *)
begin
try Preferences.load_pref ()