Better kill ring
This commit is contained in:
@@ -12,6 +12,23 @@
|
||||
(load custom-file 'no-error 'no-message)
|
||||
(setq use-short-answers t)
|
||||
|
||||
|
||||
(setq kill-ring-max 200)
|
||||
|
||||
;; Save clipboard contents into kill-ring before replace them
|
||||
(setq save-interprogram-paste-before-kill t)
|
||||
;; Kill & Mark things easily
|
||||
(use-package easy-kill
|
||||
:bind (([remap kill-ring-save] . easy-kill)
|
||||
([remap mark-sexp] . easy-mark)))
|
||||
|
||||
;; Interactively insert and edit items from kill-ring
|
||||
(use-package browse-kill-ring
|
||||
:bind ("C-c k" . browse-kill-ring)
|
||||
:hook (after-init . browse-kill-ring-default-keybindings)
|
||||
:init (setq browse-kill-ring-separator "────────────────"
|
||||
browse-kill-ring-separator-face 'shadow))
|
||||
|
||||
(global-set-key (kbd "s-a") 'mark-whole-buffer) ;;对应Windows上面的Ctrl-a 全选
|
||||
(global-set-key (kbd "s-c") 'kill-ring-save) ;;对应Windows上面的Ctrl-c 复制
|
||||
(global-set-key (kbd "s-s") 'save-buffer) ;; 对应Windows上面的Ctrl-s 保存
|
||||
|
||||
Reference in New Issue
Block a user