Automatically enter visual-line-mode in text-mode

This commit is contained in:
Gergely Polonkai 2016-09-26 10:15:12 +02:00
parent 5c0d9eb605
commit fdee4b7c87

View File

@ -361,6 +361,8 @@ Version 2016-02-16"
(lambda () (lambda ()
(if (display-graphic-p) (org-bullets-mode t)))) (if (display-graphic-p) (org-bullets-mode t))))
(add-hook 'text-mode-hook (lambda () (visual-line-mode t)))
(global-set-key (kbd "M-(") 'æ-enclose-region) (global-set-key (kbd "M-(") 'æ-enclose-region)
;; TODO: maybe add-to-list is a better way to do it ;; TODO: maybe add-to-list is a better way to do it