summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2024-09-17 09:38:00 +0800
committernoa2024-09-17 09:38:00 +0800
commit3d4213001ee70863c997bb547460e18725e624af (patch)
treebb4d4e125b2dc44b65cc11da87151459468322f5 /emacs
parent7c088cc3dd93f27fdafa24df14f0033b9085a45a (diff)
Add markdown link configuration
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 629833d..d75a027 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -475,6 +475,14 @@
 (add-to-list 'auto-mode-alist
 	     '("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode))
 
+;; When inserting a link, only prompt for url and link text
+(setopt markdown-disable-tooltip-prompt t)
+
+;; I don't believe markdown should have html
+(setopt markdown-enable-html nil)
+
+(setopt markdown-hide-urls t)
+(setopt markdown-url-compose-char ?🔗)
 
 ;; Autocorrection