|
Packit Service |
fb6fa5 |
# GTK - The GIMP Toolkit
|
|
Packit Service |
fb6fa5 |
# Copyright (C) 2002 Owen Taylor
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
# License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
# version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
# Lesser General Public License for more details.
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
# License along with this library; if not, write to the
|
|
Packit Service |
fb6fa5 |
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
fb6fa5 |
# Boston, MA 02111-1307, USA.
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
# Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
Packit Service |
fb6fa5 |
# file for a list of people on the GTK+ Team. See the ChangeLog
|
|
Packit Service |
fb6fa5 |
# files for a list of changes. These files are distributed with
|
|
Packit Service |
fb6fa5 |
# GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# A keybinding set implementing emacs-like keybindings
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# Bindings for GtkTextView and GtkEntry
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
binding "gtk-emacs-text-entry"
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<alt>b" { "move-cursor" (words, -1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><alt>b" { "move-cursor" (words, -1, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<alt>f" { "move-cursor" (words, 1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><alt>f" { "move-cursor" (words, 1, 1) }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>w" { "cut-clipboard" () }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>y" { "paste-clipboard" () }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>d" { "delete-from-cursor" (chars, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<alt>d" { "delete-from-cursor" (word-ends, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>k" { "delete-from-cursor" (paragraph-ends, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<alt>backslash" { "delete-from-cursor" (whitespace, 1) }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<alt>space" { "delete-from-cursor" (whitespace, 1)
|
|
Packit Service |
fb6fa5 |
"insert-at-cursor" (" ") }
|
|
Packit Service |
fb6fa5 |
bind "<alt>KP_Space" { "delete-from-cursor" (whitespace, 1)
|
|
Packit Service |
fb6fa5 |
"insert-at-cursor" (" ") }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# Some non-Emacs keybindings people are attached to
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>u" {
|
|
Packit Service |
fb6fa5 |
"move-cursor" (paragraph-ends, -1, 0)
|
|
Packit Service |
fb6fa5 |
"delete-from-cursor" (paragraph-ends, 1)
|
|
Packit Service |
fb6fa5 |
}
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>h" { "delete-from-cursor" (chars, -1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>w" { "delete-from-cursor" (word-ends, -1) }
|
|
Packit Service |
fb6fa5 |
}
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# Bindings for GtkTextView
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
binding "gtk-emacs-text-view"
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>p" { "move-cursor" (display-lines, -1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>p" { "move-cursor" (display-lines, -1, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>n" { "move-cursor" (display-lines, 1, 0) }
|
|
Packit Service |
fb6fa5 |
bind "<shift><ctrl>n" { "move-cursor" (display-lines, 1, 1) }
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>space" { "set-anchor" () }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>KP_Space" { "set-anchor" () }
|
|
Packit Service |
fb6fa5 |
}
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# Bindings for GtkTreeView
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
binding "gtk-emacs-tree-view"
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>s" { "start-interactive-search" () }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>f" { "move-cursor" (logical-positions, 1) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>b" { "move-cursor" (logical-positions, -1) }
|
|
Packit Service |
fb6fa5 |
}
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
# Bindings for menus
|
|
Packit Service |
fb6fa5 |
#
|
|
Packit Service |
fb6fa5 |
binding "gtk-emacs-menu"
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>n" { "move-current" (next) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>p" { "move-current" (prev) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>f" { "move-current" (child) }
|
|
Packit Service |
fb6fa5 |
bind "<ctrl>b" { "move-current" (parent) }
|
|
Packit Service |
fb6fa5 |
}
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
class "GtkEntry" binding "gtk-emacs-text-entry"
|
|
Packit Service |
fb6fa5 |
class "GtkTextView" binding "gtk-emacs-text-entry"
|
|
Packit Service |
fb6fa5 |
class "GtkTextView" binding "gtk-emacs-text-view"
|
|
Packit Service |
fb6fa5 |
class "GtkTreeView" binding "gtk-emacs-tree-view"
|
|
Packit Service |
fb6fa5 |
class "GtkMenuShell" binding "gtk-emacs-menu"
|