Emacs: Clarify keybinding for copy-to-register, refactoring.

This commit is contained in:
tastytea 2020-03-19 16:52:35 +01:00
parent 834262e7f8
commit 01e51164e9
1 changed files with 10 additions and 16 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-18T14:59:17+0100>
;; Time-stamp: <2020-03-19T16:52:25+0100>
;;; Commentary:
@ -10,21 +10,15 @@
(require 'basics/global-variables)
(use-package emacs
:custom
(require-final-newline t) ; Always add newline at end of file.
(fill-column 80) ; Documents are 80 chars wide by default.
(word-wrap t) ; Wrap at word for continuation lines.
:bind
("C-r" . jump-to-register) ; Move point to location in register.
("C-S-r" . point-to-register) ; Store location of point in register.
("M-W" . copy-to-register) ; Store text in register.
("C-S-y" . insert-register) ; Insert text from register.
("M-<f7>" . list-registers) ; List all registers.
:hook
(text-mode . auto-fill-mode) ; Enable word-wrapping at fill-column.
)
:custom ((require-final-newline t) ; Always add newline at end of file.
(fill-column 80) ; Documents are 80 chars wide by default.
(word-wrap t)) ; Wrap at word for continuation lines.
:bind (("C-r" . jump-to-register) ; Move point to location in register.
("C-S-r" . point-to-register) ; Store location of point in register.
("M-S-w" . copy-to-register) ; Store text in register.
("C-S-y" . insert-register) ; Insert text from register.
("M-<f7>" . list-registers)) ; List all registers.
:hook (text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
;; Quickly jump to next/previous register.
(use-package register-quicknav