Commit be982e7f authored by Roberto Majadas's avatar Roberto Majadas

emacs: find command

parent c3f849ab
......@@ -241,6 +241,16 @@ gb_source_emacs_cmd_save_all (GbSourceEmacs *emacs,
gb_widget_activate_action (GTK_WIDGET (priv->text_view), "win", "save-all", NULL);
}
static void
gb_source_emacs_cmd_find (GbSourceEmacs *emacs,
GRegex *matcher,
GbSourceEmacsCommandFlags flags)
{
GbSourceEmacsPrivate *priv = GB_SOURCE_EMACS (emacs)->priv;
gb_widget_activate_action (GTK_WIDGET (priv->text_view), "editor-frame", "find", NULL);
}
static void
gb_source_emacs_cmd_undo (GbSourceEmacs *emacs,
GRegex *matcher,
......@@ -917,10 +927,14 @@ gb_source_emacs_class_init (GbSourceEmacsClass *klass)
g_regex_new("^C-x C-s$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
gb_source_emacs_cmd_save_file);
gb_source_emacs_class_register_command (klass,
gb_source_emacs_class_register_command (klass,
g_regex_new("^C-x s$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
gb_source_emacs_cmd_save_all);
gb_source_emacs_class_register_command (klass,
g_regex_new("^C-s$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
gb_source_emacs_cmd_find);
gb_source_emacs_class_register_command (klass,
g_regex_new("^C-x C-w$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment