Skip to content

Commit

Permalink
fix: preview org files with mdopen
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Aug 16, 2024
1 parent f179ea1 commit 4a64532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grip-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ Use default browser unless `xwidget' is available."
(unless (and grip-mdopen-path (executable-find grip-mdopen-path))
(grip-mode -1) ; Force to disable
(user-error "The `mdopen' is not available in PATH environment"))
(when buffer-file-name
(when grip--preview-file
(setq grip--process
(start-process "mdopen" "*mdopen*"
grip-mdopen-path
buffer-file-name))
(message "Preview `%s' with mdopen" buffer-file-name)))
grip--preview-file))
(message "Preview `%s' on %s" buffer-file-name (grip--preview-url))))
(progn
(unless (and grip-binary-path (executable-find grip-binary-path))
(grip-mode -1) ; Force to disable
Expand Down

0 comments on commit 4a64532

Please sign in to comment.