Skip to content

Commit

Permalink
fix errors during byte compile
Browse files Browse the repository at this point in the history
  • Loading branch information
kimim committed Feb 9, 2024
1 parent 377187d commit 4caa922
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chatu.el
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@
"Refresh image for different major mode."
(cond ((and (featurep 'markdown-mode)
(derived-mode-p 'markdown-mode))
(require 'markdown-mode)
(markdown-remove-inline-images)
(markdown-display-inline-images))
((and (featurep 'org-mode)
(derived-mode-p 'org-mode)))
((org-redisplay-inline-images))))
((and (featurep 'org)
(derived-mode-p 'org-mode))
(require 'org)
(org-redisplay-inline-images))))

(defun chatu-insert-image (path)
"Insert image string PATH for different major mode."
Expand Down

0 comments on commit 4caa922

Please sign in to comment.