 ;; Automatically wrap overly long lines for all text modes
 (add-hook 'text-mode-hook 'auto-fill-mode)
 
+;; Turn on line wrapping for programming, text and message buffers
+(dolist (hook '(prog-mode-hook text-mode-hook messages-buffer-mode-hook))
+  (add-hook hook 'visual-line-mode))
+
 ;; Turn on subword mode and linum mode for all prog and text modes
 (dolist (hook '(prog-mode-hook text-mode-hook))
   (add-hook hook (lambda ()

;; Replace zap-to-char with the hidden zap-up-to-char
(autoload 'zap-up-to-char "misc")
(bind-key "M-z" 'zap-up-to-char)

;; Other missing essentials that I don't want to write
(use-package crux

         ("C-c C-u" . crux-sudo-edit)
         ("C-c M-o" . crux-open-with)))

;; So I can see past kills that I can yank
(use-package browse-kill-ring
  :config (browse-kill-ring-default-keybindings))

;; Sane keyboard scrolling
(use-package pager-default-keybindings)
