|
|
|
|
|
by neilv
829 days ago
|
|
For also viewing and editing these Markdown files from Emacs, you can get semi-WYSIWYG there. Especially if you take advantage of Emacs "fill" features, such as for making nested bulleted/numbered lists readable. (setq-default fill-column 79)
(global-set-key (kbd "C-'") #'imenu-list-smart-toggle)
(autoload 'markdown-mode "markdown-mode" nil t)
(autoload 'imenu-list "imenu-list" nil t)
(autoload 'imenu-list-minor-mode "imenu-list" nil t)
(autoload 'imenu-list-noselect "imenu-list" nil t)
(autoload 'imenu-list-smart-toggle "imenu-list" nil t)
[...]
(custom-set-variables
[...]
'(markdown-hide-urls t)
[...])
;; Note: These face colors assume black-on-white normal colors.
(custom-set-faces
[...]
'(markdown-blockquote-face ((t (:inherit nil :background "gray95" :foreground "gray25"))))
'(markdown-bold-face ((t (:inherit nil :slant normal :weight bold))))
'(markdown-header-delimiter-face ((t (:inherit markdown-markup-face))))
'(markdown-header-face ((t (:inherit nil :weight bold :family "sans"))))
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 2.0))))
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.6))))
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2))))
'(markdown-header-face-4 ((t (:inherit markdown-header-face :height 1.1))))
'(markdown-header-face-5 ((t (:inherit markdown-header-face :height 1.0))))
'(markdown-highlight-face ((t (:foreground "blue" :underline t))))
'(markdown-html-attr-name-face ((t (:inherit markdown-markup-face))))
'(markdown-html-attr-value-face ((t (:inherit markdown-markup-face))))
'(markdown-html-tag-name-face ((t (:inherit markdown-markup-face))))
'(markdown-inline-code-face ((t (:inherit nil :foreground "green4"))))
'(markdown-italic-face ((t (:inherit nil :slant italic :weight normal))))
'(markdown-language-keyword-face ((t (:foreground "gray80"))))
'(markdown-link-face ((t (:inherit nil :foreground "blue3"))))
'(markdown-list-face ((t (:inherit nil :weight bold))))
'(markdown-pre-face ((t (:inherit markdown-inline-code-face :background "#f4fff4"))))
'(markdown-reference-face ((t (:weight bold))))
'(markdown-strike-through-face ((t (:inherit nil :strike-through t))))
'(markdown-table-face ((t (:inherit nil :background "#fafafa"))))
'(markdown-url-face ((t (:inherit markdown-markup-face))))
[...])
|
|