From 5ad5efc0498ec373f42b8b0cccb104592afa8c0e Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 10 Mar 2021 14:17:32 +0100 Subject: [PATCH] Emacs: Remove (my/toggle-truncate-lines), is already in Emacs. --- init.d/text/common.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/init.d/text/common.el b/init.d/text/common.el index 5390872..089c4ea 100644 --- a/init.d/text/common.el +++ b/init.d/text/common.el @@ -13,18 +13,12 @@ :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. - :config (defun my/toggle-truncate-lines () - "Toggle `truncate-lines'." - (interactive) - (if truncate-lines - (setq truncate-lines nil) - (setq truncate-lines t))) :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. - ("C-c t" . my/toggle-truncate-lines)) + ("C-c C-S-t" . toggle-truncate-lines)) :hook (text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column. ;; Quickly jump to next/previous register.