From 7627103cba60f1b26b56fdb180c0e618da448c8e Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 22 Mar 2019 07:42:19 +0100 Subject: [PATCH] Extended adoc and markdown modes with visual-line-mode. --- init.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 2f9cb52..ef3ba34 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;;; Time-stamp: <2019-03-22 06:28:08 CET> +;;; Time-stamp: <2019-03-22 07:40:06 CET> ;;; Commentary: ;;; I am using this file with Emacs 26, but most of it will probably work with @@ -577,15 +577,21 @@ ;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (use-package adoc-mode - :mode (("\\.adoc" . adoc-mode))) + :mode + (("\\.adoc" . adoc-mode)) + :hook + (adoc-mode . visual-line-mode)) (use-package markdown-mode + :init + (setq markdown-command "markdown2") :mode (("README\\.md\\'" . gfm-mode) ("\\.md\\'" . markdown-mode) ("\\.markdown\\'" . markdown-mode)) - :init - (setq markdown-command "markdown2")) + :hook + (markdown-mode . visual-line-mode) + ) (use-package crontab-mode :mode