Add key bind to toggle line wrapping
This commit is contained in:
parent
ceaae99c10
commit
ea49b52ffd
4
init.el
4
init.el
@ -16,6 +16,7 @@
|
|||||||
;;====================
|
;;====================
|
||||||
|
|
||||||
;; Custom Bindings:
|
;; Custom Bindings:
|
||||||
|
;; [ F6 ] -> Toggle line-wrapping
|
||||||
;; [ F7 ] -> Toggle linum-mode
|
;; [ F7 ] -> Toggle linum-mode
|
||||||
;; [ C-x C-b ] -> (Overwritten) Invoke ibuffer
|
;; [ C-x C-b ] -> (Overwritten) Invoke ibuffer
|
||||||
;; [ C-x RET ] -> Open eshell in the current buffer
|
;; [ C-x RET ] -> Open eshell in the current buffer
|
||||||
@ -25,6 +26,9 @@
|
|||||||
;; [ M-. ] -> Go to definition
|
;; [ M-. ] -> Go to definition
|
||||||
;; [ C-/ ] -> Alt. undo binding
|
;; [ 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.
|
;; Bind a key to show line numbers.
|
||||||
(global-set-key [f7] 'linum-mode)
|
(global-set-key [f7] 'linum-mode)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user