From f02c3878c8f11bd8664a5f9a2e53b293de228c7c Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 19 Jan 2023 19:12:10 +0100 Subject: [PATCH] Map markdown-live-preview to the right side --- arch-config/.doom.d/config.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch-config/.doom.d/config.el b/arch-config/.doom.d/config.el index e7409315..0b17500e 100644 --- a/arch-config/.doom.d/config.el +++ b/arch-config/.doom.d/config.el @@ -37,7 +37,6 @@ ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type 'relative) - ;; Here are some additional functions/macros that could help you configure Doom: ;; ;; - `load!' for loading external *.el files relative to this one @@ -58,6 +57,13 @@ ;; Enables the minimap by default. Use SPC-t-m to toggle ;(minimap-mode 1) +(map! :leader :map markdown-mode-map "m p" #'markdown-live-preview-mode) + +; split window for markdown-live-preview-mode right +(setq markdown-split-window-direction 'right) + +;(add-hook 'markdown-mode-hook 'markdown-live-preview-mode) + (setq projectile-project-search-path '("~/GitProjects/"))