This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/better-defaults/keybindings.el
justbur 1e76127e26 better-defaults: Add backward-kill-word-or-region
This function merges the functionality of `evil-delete-backward-word`
and `kill-region`. Which is called depends on whether a region is active
or not. This is the perfect `C-w` binding (for me).
2015-09-27 21:46:34 -04:00

14 lines
470 B
EmacsLisp

;;; funcs.el --- Better Emacs Defaults Layer key bindings File
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(global-set-key (kbd "C-a") 'spacemacs/smart-move-beginning-of-line)
(global-set-key (kbd "C-w") 'spacemacs/backward-kill-word-or-region)