1e76127e26
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).
14 lines
470 B
EmacsLisp
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)
|