Emacs: Dix adoc & markdown colors.

This commit is contained in:
tastytea 2020-04-17 05:04:56 +02:00
parent 77d219c1db
commit 51e260234a
1 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-04-17T01:46:00+0200>
;; Time-stamp: <2020-04-17T05:04:32+0200>
;;; Commentary:
@ -58,18 +58,18 @@
:weight bold))))
;; Enlarge meta-data to the same size as the other text.
(markup-meta-face ((t (:inherit font-lock-comment-face))))
(markup-secondary-text-face ((t (:inherit markup-gen-face :height 1.0
:foreground "firebrick"))))
(markup-secondary-text-face ((t (:inherit markup-gen-face :height 1.0))))
(markup-hide-delimiter-face ((t (:inherit markup-meta-face))))
(markup-meta-hide-face ((t (:inherit markup-meta-face))))
;; Style code snippets (``)
(markup-verbatim-face ((t (:background "gray5"))))
:config (set-face-background 'markup-verbatim-face ; Inline code.
(face-background 'hl-line))
:mode ("\\.adoc$" . adoc-mode)
:hook ((adoc-mode . auto-fill-mode) ; Wrap at fill-column.
(adoc-mode . (lambda () ; Automatically update date.
(setq-local time-stamp-pattern
"8/:[dD[aA][tT][eE]: +%Y-%02m-%02d\n")))
"8/:[dD][aA][tT][eE]: +%Y-%02m-%02d\n")))
(adoc-mode . yas-minor-mode))) ; Enable yasnippets.
(use-package markdown-mode
@ -91,6 +91,8 @@
(markdown-header-face-7 ((t (:inherit markdown-header-face :height 1.0
:weight bold))))
:config (set-face-background 'markdown-code-face ; Won't work in :custom-face.
(face-background 'hl-line))
:mode (("README\\.md$" . gfm-mode)
("\\.md$" . gfm-mode)
("\\.markdown$" . gfm-mode))