From ea49b52ffd3ea40fb5934cd383f73925da004498 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Wed, 15 Nov 2017 13:38:58 -0500 Subject: [PATCH] Add key bind to toggle line wrapping --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 6f3bfa1..cfab601 100644 --- a/init.el +++ b/init.el @@ -16,6 +16,7 @@ ;;==================== ;; Custom Bindings: +;; [ F6 ] -> Toggle line-wrapping ;; [ F7 ] -> Toggle linum-mode ;; [ C-x C-b ] -> (Overwritten) Invoke ibuffer ;; [ C-x RET ] -> Open eshell in the current buffer @@ -25,6 +26,9 @@ ;; [ M-. ] -> Go to definition ;; [ C-/ ] -> Alt. undo binding +;; Bind a key to toggle line wrapping behavior. +(global-set-key [f6] 'toggle-truncate-lines) + ;; Bind a key to show line numbers. (global-set-key [f7] 'linum-mode)