From 01e51164e96e9b193208e9e806821f75f84043d8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 19 Mar 2020 16:52:35 +0100 Subject: [PATCH] Emacs: Clarify keybinding for copy-to-register, refactoring. --- init.d/text/common.el | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/init.d/text/common.el b/init.d/text/common.el index 4cdd6cc..27f3dac 100644 --- a/init.d/text/common.el +++ b/init.d/text/common.el @@ -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-" . 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-" . 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