initial commit

This commit is contained in:
handi
2026-04-03 16:52:03 +02:00
commit 52e2d868b4
12 changed files with 517 additions and 0 deletions

73
lisp/init-markdown.el~ Normal file
View File

@@ -0,0 +1,73 @@
(require 'markdown-mode)
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(defun my/markdown-setup ()
"Ruhigere Darstellung für Markdown."
(visual-line-mode 1)
(outline-minor-mode 1)
(setq-local left-margin-width 2)
(setq-local right-margin-width 0)
(setq-local word-wrap t)
(setq-local markdown-hide-markup t)
(set-window-buffer nil (current-buffer)))
(add-hook 'markdown-mode-hook #'my/markdown-setup)
(add-hook 'gfm-mode-hook #'my/markdown-setup)
(setq markdown-fontify-code-blocks-natively t)
(setq markdown-enable-math t)
(setq markdown-hide-markup nil)
(setq markdown-list-indent-width 2)
(with-eval-after-load 'markdown-mode
;; Delimiter (#) nicht grell rot
(set-face-attribute 'markdown-header-delimiter-face nil
:foreground "#51afef" :weight 'normal)
;; Gesamtstil für Überschriften
(set-face-attribute 'markdown-header-face nil
:foreground "#51afef" :weight 'bold)
;; Level 1-6, ruhiger und org-artiger
(set-face-attribute 'markdown-header-face-1 nil
:foreground "#51afef" :weight 'bold :height 1.35)
(set-face-attribute 'markdown-header-face-2 nil
:foreground "#51afef" :weight 'bold :height 1.25)
(set-face-attribute 'markdown-header-face-3 nil
:foreground "#51afef" :weight 'bold :height 1.18)
(set-face-attribute 'markdown-header-face-4 nil
:foreground "#51afef" :weight 'semi-bold :height 1.12)
(set-face-attribute 'markdown-header-face-5 nil
:foreground "#51afef" :weight 'semi-bold :height 1.08)
(set-face-attribute 'markdown-header-face-6 nil
:foreground "#51afef" :weight 'normal :height 1.05))
(provide 'init-markdown)
;; (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
;; (add-hook 'markdown-mode-hook #'my/text-indentation-setup)
;; (add-hook 'markdown-mode-hook #'outline-minor-mode)
;; (with-eval-after-load 'markdown-mode
;; (setq markdown-fontify-code-blocks-natively t)
;; (setq markdown-enable-math t)
;; (setq markdown-hide-markup t)
;; ;; Ruhige, org-artige Überschriften für doom-badger
;; (set-face-attribute 'markdown-header-face-1 nil
;; :foreground "#e5e9f0" :weight 'bold :height 1.35)
;; (set-face-attribute 'markdown-header-face-2 nil
;; :foreground "#d8dee9" :weight 'bold :height 1.25)
;; (set-face-attribute 'markdown-header-face-3 nil
;; :foreground "#d8dee9" :weight 'bold :height 1.18)
;; (set-face-attribute 'markdown-header-face-4 nil
;; :foreground "#c0c5ce" :weight 'semi-bold :height 1.12)
;; (set-face-attribute 'markdown-header-face-5 nil
;; :foreground "#c0c5ce" :weight 'semi-bold :height 1.08)
;; (set-face-attribute 'markdown-header-face-6 nil
;; :foreground "#b0b6bf" :weight 'normal :height 1.05))
;; (provide 'init-markdown)