Styled headings for adoc and md.

This commit is contained in:
tastytea 2019-04-10 14:30:43 +02:00
parent 25accdfbff
commit 36ec172588
2 changed files with 19 additions and 4 deletions

21
init.el
View File

@ -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

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 27153
127.0.0.1:51313 4508
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh