diff options
| -rw-r--r-- | compton.conf | 244 | ||||
| -rw-r--r-- | i3/config | 185 | ||||
| -rw-r--r-- | i3status/config | 32 | ||||
| -rw-r--r-- | keymap_custom.c | 43 | ||||
| -rw-r--r-- | workman.map | 74 | ||||
| -rw-r--r-- | zile-kill-region-or-backward-kill-word.patch | 85 |
6 files changed, 85 insertions, 578 deletions
diff --git a/compton.conf b/compton.conf deleted file mode 100644 index 4bdd8b4..0000000 --- a/compton.conf +++ /dev/null @@ -1,244 +0,0 @@ -# Thank you code_nomad: http://9m.no/ꪯ鵞
-# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
-
-#################################
-#
-# Backend
-#
-#################################
-
-# Backend to use: "xrender" or "glx".
-# GLX backend is typically much faster but depends on a sane driver.
-backend = "glx";
-
-#################################
-#
-# GLX backend
-#
-#################################
-
-glx-no-stencil = true;
-
-# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
-# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
-# but a 20% increase when only 1/4 is.
-# My tests on nouveau show terrible slowdown.
-# Useful with --glx-swap-method, as well.
-glx-copy-from-front = false;
-
-# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
-# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
-# May break VSync and is not available on some drivers.
-# Overrides --glx-copy-from-front.
-# glx-use-copysubbuffermesa = true;
-
-# GLX backend: Avoid rebinding pixmap on window damage.
-# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
-# Recommended if it works.
-# glx-no-rebind-pixmap = true;
-
-# GLX backend: GLX buffer swap method we assume.
-# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
-# undefined is the slowest and the safest, and the default value.
-# copy is fastest, but may fail on some drivers,
-# 2-6 are gradually slower but safer (6 is still faster than 0).
-# Usually, double buffer means 2, triple buffer means 3.
-# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
-# Useless with --glx-use-copysubbuffermesa.
-# Partially breaks --resize-damage.
-# Defaults to undefined.
-glx-swap-method = "undefined";
-
-#################################
-#
-# Shadows
-#
-#################################
-
-# Enabled client-side shadows on windows.
-shadow = false;
-# Don't draw shadows on DND windows.
-no-dnd-shadow = true;
-# Avoid drawing shadows on dock/panel windows.
-no-dock-shadow = true;
-# The blur radius for shadows. (default 12)
-shadow-radius = 5;
-# The left offset for shadows. (default -15)
-shadow-offset-x = -5;
-# The top offset for shadows. (default -15)
-shadow-offset-y = -5;
-# The translucency for shadows. (default .75)
-shadow-opacity = 0.5;
-
-# Set if you want different colour shadows
-# shadow-red = 0.0;
-# shadow-green = 0.0;
-# shadow-blue = 0.0;
-
-# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
-# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
-# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
-shadow-exclude = [
- "! name~=''",
- "name = 'Notification'",
- "name = 'Plank'",
- "name = 'Docky'",
- "name = 'Kupfer'",
- "name = 'xfce4-notifyd'",
- "name *= 'VLC'",
- "name *= 'compton'",
- "name *= 'Chromium'",
- "name *= 'Chrome'",
- "class_g = 'Firefox' && argb",
- "class_g = 'Conky'",
- "class_g = 'Kupfer'",
- "class_g = 'Synapse'",
- "class_g ?= 'Notify-osd'",
- "class_g ?= 'Cairo-dock'",
- "class_g ?= 'Xfce4-notifyd'",
- "class_g ?= 'Xfce4-power-manager'",
- "_GTK_FRAME_EXTENTS@:c",
- "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
-];
-# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
-shadow-ignore-shaped = false;
-
-#################################
-#
-# Opacity
-#
-#################################
-
-menu-opacity = 1;
-inactive-opacity = 1;
-active-opacity = 1;
-frame-opacity = 1;
-inactive-opacity-override = false;
-alpha-step = 0.06;
-
-# Dim inactive windows. (0.0 - 1.0)
-# inactive-dim = 0.2;
-# Do not let dimness adjust based on window opacity.
-# inactive-dim-fixed = true;
-# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
-# blur-background = true;
-# Blur background of opaque windows with transparent frames as well.
-# blur-background-frame = true;
-# Do not let blur radius adjust based on window opacity.
-blur-background-fixed = false;
-blur-background-exclude = [
- "window_type = 'dock'",
- "window_type = 'desktop'"
-];
-
-#################################
-#
-# Fading
-#
-#################################
-
-# Fade windows during opacity changes.
-fading = true;
-# The time between steps in a fade in milliseconds. (default 10).
-fade-delta = 4;
-# Opacity change between steps while fading in. (default 0.028).
-fade-in-step = 0.03;
-# Opacity change between steps while fading out. (default 0.03).
-fade-out-step = 0.03;
-# Fade windows in/out when opening/closing
-# no-fading-openclose = true;
-
-# Specify a list of conditions of windows that should not be faded.
-fade-exclude = [ ];
-
-#################################
-#
-# Other
-#
-#################################
-
-# Try to detect WM windows and mark them as active.
-mark-wmwin-focused = true;
-# Mark all non-WM but override-redirect windows active (e.g. menus).
-mark-ovredir-focused = true;
-# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
-# Usually more reliable but depends on a EWMH-compliant WM.
-use-ewmh-active-win = true;
-# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
-detect-rounded-corners = true;
-
-# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
-# This prevents opacity being ignored for some apps.
-# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
-detect-client-opacity = true;
-
-# Specify refresh rate of the screen.
-# If not specified or 0, compton will try detecting this with X RandR extension.
-refresh-rate = 0;
-
-# Set VSync method. VSync methods currently available:
-# none: No VSync
-# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
-# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
-# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
-# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
-# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
-# (Note some VSync methods may not be enabled at compile time.)
-vsync = "opengl";
-
-# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
-# Reported to have no effect, though.
-dbe = false;
-
-# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
-# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
-# unless you wish to specify a lower refresh rate than the actual value.
-#sw-opti = true;
-
-# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
-# Known to cause flickering when redirecting/unredirecting windows.
-# paint-on-overlay may make the flickering less obvious.
-unredir-if-possible = false;
-
-# Specify a list of conditions of windows that should always be considered focused.
-focus-exclude = [ ];
-
-# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
-detect-transient = true;
-# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
-# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
-detect-client-leader = true;
-
-#################################
-#
-# Window type settings
-#
-#################################
-
-wintypes:
-{
- tooltip =
- {
- # fade: Fade the particular type of windows.
- fade = true;
- # shadow: Give those windows shadow
- shadow = false;
- # opacity: Default opacity for the type of windows.
- opacity = 0.85;
- # focus: Whether to always consider windows of this type focused.
- focus = true;
- };
-};
-
-######################
-#
-# XSync
-# See: https://github.com/yshui/compton/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
-#
-######################
-
-# Attempt to synchronize client applications' draw calls with `XSync()`, used on GLX backend to ensure up-to-date window content is painted.
-xrender-sync = true;
-
-# use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
-xrender-sync-fence = true;
diff --git a/i3/config b/i3/config deleted file mode 100644 index 0392f33..0000000 --- a/i3/config +++ /dev/null @@ -1,185 +0,0 @@ -# Time-stamp: <2020-05-20 18:56:40 (tslil@forfeit)> - -set $mod Mod4 - -# ----------------------------------------------------------------------------- -# Run on startup - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -exec --no-startup-id nm-applet -exec --no-startup-id pasystray - -# ----------------------------------------------------------------------------- -# Global options - -font pango:DejaVu Sans Mono 8 -workspace_layout tabbed -title_align center -hide_edge_borders smart -focus_follows_mouse no -workspace_auto_back_and_forth yes - -# ----------------------------------------------------------------------------- -# Global keybinds - -# Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status - -floating_modifier $mod - -bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Shift+k kill -bindsym $mod+p exec rofi -show window -bindsym $mod+space exec rofi -show run -bindsym $mod+q exec firefox -bindsym $mod+d exec emacs - -# ----------------------------------------------------------------------------- -# Focus - -bindsym $mod+n focus left -bindsym $mod+e focus down -bindsym $mod+o focus up -bindsym $mod+i focus right -bindsym $mod+Shift+n move left -bindsym $mod+Shift+e move down -bindsym $mod+Shift+o move up -bindsym $mod+Shift+i move right - -# Cursor keys -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# ----------------------------------------------------------------------------- -# Resizing -mode "resize" { - bindsym n resize grow width 5 px or 5 ppt - bindsym e resize shrink height 5 px or 5 ppt - bindsym o resize grow height 5 px or 5 ppt - bindsym i resize shrink width 5 px or 5 ppt - - # same bindings, but for the arrow keys - bindsym Left resize grow width 5 px or 5 ppt - bindsym Down resize shrink height 5 px or 5 ppt - bindsym Up resize grow height 5 px or 5 ppt - bindsym Right resize shrink width 5 px or 5 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+a mode "default" -} - -bindsym $mod+a mode "resize" - -# ----------------------------------------------------------------------------- -# Splitting and layouts - -bindsym $mod+h split h -bindsym $mod+v split v -bindsym $mod+Shift+f fullscreen toggle - -bindsym $mod+s layout stacking -bindsym $mod+t layout tabbed -bindsym $mod+Tab layout toggle split - -bindsym $mod+Shift+space floating toggle -bindsym $mod+f focus mode_toggle - -bindsym $mod+u focus parent -bindsym $mod+Shift+u focus child - -# ----------------------------------------------------------------------------- -# Workspaces - -set $ws1 "1 : default" -set $ws2 "2 : work" -set $ws3 "3 : code" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9 : game" -set $ws10 "10" - -# switch to workspace -bindsym $mod+1 workspace number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $ws10 - -# ----------------------------------------------------------------------------- -# Config management - -bindsym $mod+Shift+r reload -bindsym $mod+Shift+w restart -bindsym $mod+Shift+x exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" - -# ---------------------------------------------------------------------------- -# Colours - -set $bg #282828 -set $red #cc241d -set $green #98971a -set $yellow #d79921 -set $blue #458588 -set $purple #b16286 -set $aqua #689d68 -set $gray #a89984 -set $darkgray #1d2021 - -# class border|backgr|text|indicator|child_border -client.focused $blue $blue $darkgray $purple $darkgray -client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray -client.unfocused $darkgray $darkgray $yellow $purple $darkgray -client.urgent $red $red $white $red $red - -# ----------------------------------------------------------------------------- -# Bar - -bar { - status_command i3status - colors { - # bar background color - background $bg - # text color used for blocks that do not have a color specified. - statusline $yellow - # workspaces section - # border backgr. text - focused_workspace $aqua $aqua $darkgray - inactive_workspace $darkgray $darkgray $yellow - active_workspace $darkgray $darkgray $yellow - urgent_workspace $red $red $bg - } -} diff --git a/i3status/config b/i3status/config deleted file mode 100644 index 577519d..0000000 --- a/i3status/config +++ /dev/null @@ -1,32 +0,0 @@ -# Time-stamp: <2020-05-09 14:36:54 (tslil@forfeit)> - -general { - colors = true - interval = 5 -} - -order += "battery all" -order += "memory" -order += "cpu_temperature 0" -order += "tztime local" - -battery all { - format = "%status %percentage %remaining" -} - - -memory { - format = "RAM %used (%available)" - threshold_degraded = "1G" - format_degraded = "MEMORY < %available" -} - -tztime local { - format = "%d/%H:%M" -} - - -cpu_temperature 0 { - format = "CPU %degrees °C" - path = "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input" -} diff --git a/keymap_custom.c b/keymap_custom.c deleted file mode 100644 index 7042704..0000000 --- a/keymap_custom.c +++ /dev/null @@ -1,43 +0,0 @@ -#include "keymap_common.h" - -/* This layout implements colemak in the firmware, so you don't have to - set the OS configuration into colemak layout. Useful if you don't have - a laptop with an internal keyboard, or if you use other peoples' computers - a lot. */ - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* 0: colemak */ - KEYMAP(KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_QUOT, \ - KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, \ - KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, \ - KC_TAB, KC_ESC, KC_F18, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT, \ - KC_SPC, KC_FN0, KC_MINUS, KC_SCLN, KC_ENT), \ - /* 1: punctuation and numbers */ - KEYMAP(SHIFT(KC_1), SHIFT(KC_2), SHIFT(KC_LBRC), SHIFT(KC_RBRC), SHIFT(KC_GRAVE), KC_PGUP, KC_7, KC_8, KC_9, SHIFT(KC_EQUAL), \ - KC_EQUAL, SHIFT(KC_4), SHIFT(KC_9), KC_BSLS, KC_GRAVE, KC_PGDN, KC_4, KC_5, KC_6, SHIFT(KC_0), \ - SHIFT(KC_5), SHIFT(KC_6), KC_LBRC, KC_RBRC, SHIFT(KC_BSLS), SHIFT(KC_7), KC_1, KC_2, KC_3, SHIFT(KC_8), \ - KC_FN1, SHIFT(KC_INS), KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT, KC_SPC, KC_FN0, KC_DOT, KC_0, SHIFT(KC_3)), \ - /* 2: arrows and function keys */ - KEYMAP(KC_INS, KC_HOME, KC_UP, KC_END, KC_PGUP, \ - KC_UP, KC_F7, KC_F8, KC_F9, KC_F10, \ - KC_DEL, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, \ - KC_DOWN, KC_F4, KC_F5, KC_F6, KC_F11, \ - KC_NO, KC__VOLUP, KC_NO, KC_NO, KC_PAUSE, \ - KC_NO, KC_F1, KC_F2, KC_F3, KC_F12, \ - KC_NO, KC__VOLDOWN, KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, \ - KC_LALT, KC_SPC, KC_FN2, KC_PSCREEN, KC_SLCK, KC_FN3) -}; - -const uint16_t PROGMEM fn_actions[] = { - [0] = ACTION_LAYER_MOMENTARY(1), // to Fn overlay - [1] = ACTION_LAYER_ON(2, 1), // switch to layer 2 - [2] = ACTION_LAYER_OFF(2, 1), // switch back to layer 0 - [3] = ACTION_FUNCTION(BOOTLOADER) -}; - -void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) -{ - if (id == BOOTLOADER) { - bootloader(); - } -} diff --git a/workman.map b/workman.map deleted file mode 100644 index 9feb831..0000000 --- a/workman.map +++ /dev/null @@ -1,74 +0,0 @@ -# workman.kmap for Linux console. -# http://workman.ws -# http://www.workmanlayout.com -alt_is_meta -include "qwerty-layout" -include "linux-with-alt-and-altgr" -strings as usual - -keycode 41 = grave asciitilde -keycode 2 = one exclam -keycode 3 = two at -keycode 4 = three numbersign -keycode 5 = four dollar -keycode 6 = five percent -keycode 7 = six asciicircum -keycode 8 = seven ampersand -keycode 9 = eight asterisk -keycode 10 = nine parenleft -keycode 11 = zero parenright -keycode 12 = minus underscore -keycode 13 = equal plus - -keycode 16 = q Q -keycode 17 = d D -keycode 18 = r R -keycode 19 = w W -keycode 20 = b B -keycode 21 = j J -keycode 22 = f F -keycode 23 = u U -keycode 24 = p P -keycode 25 = semicolon colon -keycode 26 = bracketleft braceleft -keycode 27 = bracketright braceright -keycode 43 = backslash bar - -keycode 30 = a A -keycode 31 = s S -keycode 32 = h H -keycode 33 = t T -keycode 34 = g G -keycode 35 = y Y -keycode 36 = n N -keycode 37 = e E -keycode 38 = o O -keycode 39 = i I -keycode 40 = apostrophe quotedbl - -keycode 44 = z Z -keycode 45 = x X -keycode 46 = m M -keycode 47 = c C -keycode 48 = v V -keycode 49 = k K -keycode 50 = l L -keycode 51 = comma less -keycode 52 = period greater -keycode 53 = slash question - -keycode 86 = minus underscore -keycode 57 = space space - - -keycode 1 = Escape -keycode 14 = Delete -keycode 15 = Tab -keycode 28 = Return -keycode 29 = Control -keycode 42 = Shift -keycode 54 = Shift -keycode 56 = Alt -keycode 58 = Control -keycode 69 = Num_Lock Caps_Lock -keycode 97 = Control diff --git a/zile-kill-region-or-backward-kill-word.patch b/zile-kill-region-or-backward-kill-word.patch new file mode 100644 index 0000000..fb6ddeb --- /dev/null +++ b/zile-kill-region-or-backward-kill-word.patch @@ -0,0 +1,85 @@ +diff --git a/src/buffer.c b/src/buffer.c +index bbb487c6..9656418c 100644 +--- a/src/buffer.c ++++ b/src/buffer.c +@@ -436,6 +436,16 @@ warn_if_readonly_buffer (void) + return false; + } + ++bool ++check_if_no_mark (void) { ++ if ((!cur_bp->mark) || ++ (!get_buffer_mark_active (cur_bp))) ++ { ++ return true; ++ } ++ return false; ++} ++ + bool + warn_if_no_mark (void) + { +diff --git a/src/extern.h b/src/extern.h +index 277e1619..2b04edc3 100644 +--- a/src/extern.h ++++ b/src/extern.h +@@ -74,6 +74,7 @@ _GL_ATTRIBUTE_PURE const char *get_buffer_filename_or_name (Buffer bp); + void set_buffer_names (Buffer bp, const char *filename); + _GL_ATTRIBUTE_PURE Buffer find_buffer (const char *name); + void switch_to_buffer (Buffer bp); ++bool check_if_no_mark (void); + bool warn_if_no_mark (void); + bool warn_if_readonly_buffer (void); + #define FIELD(ty, field) \ +diff --git a/src/killring.c b/src/killring.c +index 750acb1d..50753ac7 100644 +--- a/src/killring.c ++++ b/src/killring.c +@@ -211,6 +211,34 @@ kill_text (long uniarg, Function mark_func) + return true; + } + ++DEFUN_ARGS ("kill-region-or-backward-kill-word", ++ kill_region_or_backward_kill_word, ++ INT_OR_UNIARG (arg)) ++/*+ ++Kill (\"cut\") text between point and mark, if they are both ++active, otherwise performs \\[backward-kill-word]. This deletes the ++text from the buffer and saves it in the kill ring. The command ++\\[yank] can retrieve it from there. ++ ++Any command that calls this function is a \"kill command\". If the ++previous command was also a kill command, the text killed this time ++appends to the text killed last time to make one entry in the kill ++ring. ++ ++If the buffer is read-only, Zile will beep and refrain from deleting ++the text, but put the text in the kill ring anyway. This means that ++you can use the killing commands to copy text from a read-only buffer. +++*/ ++{ ++ INT_OR_UNIARG_INIT (arg); ++ if (check_if_no_mark ()) { ++ ok = kill_text (-arg, F_mark_word); ++ } else { ++ ok = copy_or_kill_the_region(true); ++ } ++} ++END_DEFUN ++ + DEFUN_ARGS ("kill-word", kill_word, + INT_OR_UNIARG (arg)) + /*+ +diff --git a/src/tbl_bindings.pl b/src/tbl_bindings.pl +index 61240d15..797e3bfa 100644 +--- a/src/tbl_bindings.pl ++++ b/src/tbl_bindings.pl +@@ -70,7 +70,7 @@ + "keyboard-quit" => ["\\C-g"], + "kill-buffer" => ["\\C-xk"], + "kill-line" => ["\\C-k"], +- "kill-region" => ["\\C-w"], ++ "kill-region-or-backward-kill-word" => ["\\C-w"], + "kill-sexp" => ["\\C-\\M-k"], + "kill-word" => ["\\M-d"], + "list-buffers" => ["\\C-x\\C-b"], |
