请教doomEmacs+EAF如何实时更新Markdown/Org的预览?

小白初用doomEmacs,主要是写Markdown和LaTeX之类的,原本用的VSCode,但后来了解到了org,便想用Org来完成日常的笔记和文献初稿之类的,习惯了VSCode下Markdown实时更新,今天装好EAF和doom之后发现只有保存buffer之后eaf才会更新渲染。 搜索了一下,好像没人有这个问题,都说EAF能实时渲染,想问一下,如何配置才能和buffer同步更新预览

1 个赞

再安装一个 GitHub - manateelazycat/auto-save: Automatically save files without temporary files to protect your finger. ;)

谢谢,我试试看

可以了🙆‍♂️,多谢

我已经更新了README "README: Update instructions for EAF Markdown Previewer with auto-sav… · emacs-eaf/eaf-markdown-previewer@f2b439d · GitHub

避免下一个人不知道这么做。

大佬,我想在请教一个问题,用eaf-open-this-buffer打开Markdown下的预览是黑底白字,但是org的预览却是黑底黑字,而我又用eaf-open-browser打开生成的html又变回黑底白字,我的EAF配置是抄的这里的 https://emacs-china.org/t/doomemacs-eaf/23155/13 ,请问下知道是什么原因导致的吗?

(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/")

(require 'eaf)

 (require 'eaf-markdown-previewer)
 (require 'eaf-rss-reader)
 (require 'eaf-pdf-viewer)
 (require 'eaf-image-viewer)
 (require 'eaf-browser)
 (require 'eaf-org-previewer)
 (require 'eaf-mindmap)
 (require 'eaf-org)
 (defun eaf-org-open-file (file &optional link)
  "An wrapper function on `eaf-open'."
  (eaf-open file))
;;请使用 M-x eaf-org-export-to-pdf-and-open
;; use `emacs-application-framework' to open PDF file: link
 (add-to-list 'org-file-apps '("\\.pdf\\'" . eaf-org-open-file))


 (require 'eaf-evil)
;; eaf会把C-SPC当成evil的leader-key,在你加载'eaf-evil之后使用eaf时就需要在eaf中键入C-SPC使用evil leader下的键。
;; 我们只需要将这个键设置为 SPC或你自己的evil-leader-key即可
 (setq eaf-evil-leader-key "SPC")
;; (add-to-list 'TeX-command-list '("XeLaTeX" "%`xelatex --synctex=1%(mode)%' %t" TeX-run-TeX nil t))
;; (add-to-list 'TeX-view-program-list '("eaf" eaf-pdf-synctex-forward-view))
;; (add-to-list 'TeX-view-program-selection '(output-pdf "eaf"))

因为org preview没有做主题跟随,其他应用都做了主题跟随。

多谢多谢。:man_bowing:

对不起,我不知道,我放弃使用EAF, 使用pdf-tools了。

1 个赞