From 003df2880bb6e1261e1075ebe0129e77da1e4d40 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 19 Jan 2023 19:12:02 +0100 Subject: [PATCH 1/2] Disable grip --- arch-config/.doom.d/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-config/.doom.d/init.el b/arch-config/.doom.d/init.el index f8d89594..ce5822f0 100644 --- a/arch-config/.doom.d/init.el +++ b/arch-config/.doom.d/init.el @@ -143,7 +143,7 @@ ;;factor ;;ledger ; an accounting system in Emacs ;;lua ; one-based indices? one-based indices - (markdown +grip) ; writing docs for people to ignore + markdown ; writing docs for people to ignore ;;nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel From f02c3878c8f11bd8664a5f9a2e53b293de228c7c Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 19 Jan 2023 19:12:10 +0100 Subject: [PATCH 2/2] 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/"))