We assume that the X server is running with DontZap. Still, to make
C-M-DEL actually do the right thing, we need to do two more hacks.
* xinitrc: Remove the mapping of BackSpace to Terminate_Server.
Because DontZap is set, this keysym does nothing at all, which is
much less helpful than just being a modified backspace.
* emacs: For some reason, ESC C-DEL is bound by default, but C-M-DEL
isn't. Provide the binding ourselves.
(global-set-key [delete] 'delete-char)
(global-set-key [?\M-q] 'mdw-fill-paragraph)
(global-set-key [?\C-h ?\C-m] 'manual-entry)
(global-set-key [delete] 'delete-char)
(global-set-key [?\M-q] 'mdw-fill-paragraph)
(global-set-key [?\C-h ?\C-m] 'manual-entry)
+(global-set-key [C-M-backspace] 'backward-kill-sexp)
(global-set-key [mode-line C-mouse-1] 'mouse-tear-off-window)
(global-set-key [vertical-scroll-bar C-down-mouse-1]
'mouse-drag-vertical-line)
(global-set-key [mode-line C-mouse-1] 'mouse-tear-off-window)
(global-set-key [vertical-scroll-bar C-down-mouse-1]
'mouse-drag-vertical-line)
run init xset r rate 500 50
run init xset m 2 1
run init xset r rate 500 50
run init xset m 2 1
+ ## Key mappings.
+ xmodmap -e 'keysym BackSpace = BackSpace BackSpace'
+
## Gnome settings.
case $vnc in no) run bginit gnome-settings-daemon ;; esac
}
## Gnome settings.
case $vnc in no) run bginit gnome-settings-daemon ;; esac
}