cnfonts的profile打开org文件的时候如何做到自动加载对应的profile

我最近放弃了valign,因为大表格太慢了 改用cnfonts, GitHub - tumashu/cnfonts: emacs中文字体配置工具。可以快速方便的的实现中文字体和英文字体等宽(也就是常说的中英文对齐)。 参考项目上的介绍,用 cnfonts-edit-profile 里面的对齐,设置了org-mode profile image

但是每次打开org文件,都需要手动运行命令 cnfonts-switch-profile 选择org-mode profile才能对齐表格

什么方法能打开org文件就自动使用这个profile呢? init.el 中 org-mode profile已经放在第一个了,如下

;; org table对齐设置
(require 'cnfonts)
(cnfonts-mode 1)
(setq cnfonts-profiles
      '("org-mode" "program" "read-book"))

AI提供的答案有瑕疵啊,去看了cnfonts的代码,用了另一个函数就可以了

(defun my-switch-cnfonts-profile ()
  (message "Switching cnfonts profile...")
  (cnfonts--select-profile "org-mode"))

(add-hook 'org-mode-hook 'my-switch-cnfonts-profile)