summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/markdown-mode.el
diff options
context:
space:
mode:
authorSimeon Simeonov2024-05-01 13:32:13 +0200
committerSimeon Simeonov2024-05-01 13:32:13 +0200
commit87d628a4bb80f1253e01e408bb8e02a0840f85b2 (patch)
tree64643cb52bbf64b653bf4ba733bcd533ecd81a6b /.emacs.d/lisp/markdown-mode.el
parent4e57fb98342dd3cce7faa38e25c8ec2014a21865 (diff)
Upgrade markdown-mode
Diffstat (limited to '.emacs.d/lisp/markdown-mode.el')
-rw-r--r--.emacs.d/lisp/markdown-mode.el35
1 files changed, 16 insertions, 19 deletions
diff --git a/.emacs.d/lisp/markdown-mode.el b/.emacs.d/lisp/markdown-mode.el
index c27ebbc..33f7476 100644
--- a/.emacs.d/lisp/markdown-mode.el
+++ b/.emacs.d/lisp/markdown-mode.el
@@ -1905,10 +1905,10 @@ See `markdown-hide-markup' for additional details."
1905 (not markdown-hide-markup) 1905 (not markdown-hide-markup)
1906 (> (prefix-numeric-value arg) 0))) 1906 (> (prefix-numeric-value arg) 0)))
1907 (if markdown-hide-markup 1907 (if markdown-hide-markup
1908 (progn (add-to-invisibility-spec 'markdown-markup) 1908 (add-to-invisibility-spec 'markdown-markup)
1909 (message "markdown-mode markup hiding enabled")) 1909 (remove-from-invisibility-spec 'markdown-markup))
1910 (progn (remove-from-invisibility-spec 'markdown-markup) 1910 (when (called-interactively-p 'interactive)
1911 (message "markdown-mode markup hiding disabled"))) 1911 (message "markdown-mode markup hiding %s" (if markdown-hide-markup "enabled" "disabled")))
1912 (markdown-reload-extensions)) 1912 (markdown-reload-extensions))
1913 1913
1914 1914
@@ -8286,9 +8286,8 @@ and disable it otherwise."
8286 (if (eq arg 'toggle) 8286 (if (eq arg 'toggle)
8287 (not markdown-hide-urls) 8287 (not markdown-hide-urls)
8288 (> (prefix-numeric-value arg) 0))) 8288 (> (prefix-numeric-value arg) 0)))
8289 (if markdown-hide-urls 8289 (when (called-interactively-p 'interactive)
8290 (message "markdown-mode URL hiding enabled") 8290 (message "markdown-mode URL hiding %s" (if markdown-hide-urls "enabled" "disabled")))
8291 (message "markdown-mode URL hiding disabled"))
8292 (markdown-reload-extensions)) 8291 (markdown-reload-extensions))
8293 8292
8294 8293
@@ -8524,9 +8523,8 @@ and disable it otherwise."
8524 (if (eq arg 'toggle) 8523 (if (eq arg 'toggle)
8525 (not markdown-enable-wiki-links) 8524 (not markdown-enable-wiki-links)
8526 (> (prefix-numeric-value arg) 0))) 8525 (> (prefix-numeric-value arg) 0)))
8527 (if markdown-enable-wiki-links 8526 (when (called-interactively-p 'interactive)
8528 (message "markdown-mode wiki link support enabled") 8527 (message "markdown-mode wiki link support %s" (if markdown-enable-wiki-links "enabled" "disabled")))
8529 (message "markdown-mode wiki link support disabled"))
8530 (markdown-reload-extensions)) 8528 (markdown-reload-extensions))
8531 8529
8532(defun markdown-setup-wiki-link-hooks () 8530(defun markdown-setup-wiki-link-hooks ()
@@ -8779,13 +8777,12 @@ if ARG is omitted or nil."
8779 (not markdown-enable-math) 8777 (not markdown-enable-math)
8780 (> (prefix-numeric-value arg) 0))) 8778 (> (prefix-numeric-value arg) 0)))
8781 (if markdown-enable-math 8779 (if markdown-enable-math
8782 (progn 8780 (font-lock-add-keywords
8783 (font-lock-add-keywords 8781 'markdown-mode markdown-mode-font-lock-keywords-math)
8784 'markdown-mode markdown-mode-font-lock-keywords-math)
8785 (message "markdown-mode math support enabled"))
8786 (font-lock-remove-keywords 8782 (font-lock-remove-keywords
8787 'markdown-mode markdown-mode-font-lock-keywords-math) 8783 'markdown-mode markdown-mode-font-lock-keywords-math))
8788 (message "markdown-mode math support disabled")) 8784 (when (called-interactively-p 'interactive)
8785 (message "markdown-mode math support %s" (if markdown-enable-math "enabled" "disabled")))
8789 (markdown-reload-extensions)) 8786 (markdown-reload-extensions))
8790 8787
8791 8788
@@ -9036,9 +9033,9 @@ and disable otherwise."
9036 (if (eq arg 'toggle) 9033 (if (eq arg 'toggle)
9037 (not markdown-fontify-code-blocks-natively) 9034 (not markdown-fontify-code-blocks-natively)
9038 (> (prefix-numeric-value arg) 0))) 9035 (> (prefix-numeric-value arg) 0)))
9039 (if markdown-fontify-code-blocks-natively 9036 (when (called-interactively-p 'interactive)
9040 (message "markdown-mode native code block fontification enabled") 9037 (message "markdown-mode native code block fontification %s"
9041 (message "markdown-mode native code block fontification disabled")) 9038 (if markdown-fontify-code-blocks-natively "enabled" "disabled")))
9042 (markdown-reload-extensions)) 9039 (markdown-reload-extensions))
9043 9040
9044;; This is based on `org-src-lang-modes' from org-src.el 9041;; This is based on `org-src-lang-modes' from org-src.el