[gnome-builder/gnome-builder-3-18] emacs: use _ as a word break with word movements



commit 93a820e7850a4dc31750597c329ddf434f094386
Author: Christian Hergert <chergert redhat com>
Date:   Sat Oct 10 23:24:59 2015 -0400

    emacs: use _ as a word break with word movements
    
    This uses our new (regained) ability to move by words that are broken
    by _. This is how word breaks are implemented in emacs and they seem to
    like it. One argument was that GNU naming used underlines because of
    emacs doing this (or vice-versa, who really knows).

 data/keybindings/emacs.css |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/emacs.css b/data/keybindings/emacs.css
index 47d4b1e..85cbff0 100644
--- a/data/keybindings/emacs.css
+++ b/data/keybindings/emacs.css
@@ -72,6 +72,11 @@
   bind "<ctrl>equal" { "increase-font-size" () };
   bind "<ctrl>0" { "reset-font-size" () };
 
+  bind "<ctrl>Right" { "movement" (next-sub-word-start, 0, 0, 0) };
+  bind "<ctrl>Left" { "movement" (previous-sub-word-start, 0, 0, 0) };
+  bind "<ctrl><shift>Right" { "movement" (next-sub-word-start, 1, 0, 0) };
+  bind "<ctrl><shift>Left" { "movement" (previous-sub-word-start, 1, 0, 0) };
+
   /* allow entering raw code */
   bind "<ctrl>q" { "capture-modifier" ()
                    "insert-modifier" (0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]