From 36ec1725884dd6149854ed6abd80c504bf5265f0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 10 Apr 2019 14:30:43 +0200 Subject: [PATCH] Styled headings for adoc and md. --- init.el | 21 ++++++++++++++++++--- server/server | 2 +- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index e623c6f..e77220e 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-04-10T03:04:50+00:00> +;; Time-stamp: <2019-04-10T12:29:27+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -712,19 +712,34 @@ (use-package adoc-mode :mode (("\\.adoc" . adoc-mode)) + :custom-face + ;; Style headers. + (markup-title-0-face ((t (:inherit markup-gen-face :height 1.4)))) + (markup-title-1-face ((t (:inherit markup-gen-face :height 1.3)))) + (markup-title-2-face ((t (:inherit markup-gen-face :height 1.2)))) + (markup-title-3-face ((t (:inherit markup-gen-face :height 1.1 :weight bold)))) + (markup-title-4-face ((t (:inherit markup-gen-face :height 1.0 :underline t)))) :hook (adoc-mode . visual-line-mode)) (use-package markdown-mode :custom (markdown-command "cmark") + :custom-face + ;; Style headers. + (markdown-header-face-1 ((t (:inherit markdown-header-face :height 1.4 :weight normal)))) + (markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.3 :weight normal)))) + (markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2 :weight normal)))) + (markdown-header-face-4 ((t (:inherit markdown-header-face :height 1.1 :weight bold)))) + (markdown-header-face-5 ((t (:inherit markdown-header-face :height 1.0 :weight normal :underline t)))) + (markdown-header-face-6 ((t (:inherit markdown-header-face :height 1.0 :weight normal)))) + (markdown-header-face-7 ((t (:inherit markdown-header-face :height 1.0 :weight normal)))) :mode (("README\\.md\\'" . gfm-mode) ("\\.md\\'" . markdown-mode) ("\\.markdown\\'" . markdown-mode)) :hook - (markdown-mode . visual-line-mode) - ) + (markdown-mode . visual-line-mode)) (use-package crontab-mode :mode diff --git a/server/server b/server/server index ddbf7f6..8664682 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 27153 +127.0.0.1:51313 4508 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file