emacs-application-framework 里面的pdf功能能不能单独做一个包?

自己使用Emacs来管理自己的研究,其中一个pdf的阅读是一个非常常用的一个功能。但是现在和Emacs能结合的pdf不多,其中一个pdf-tools实在太卡,虽然这个插件是自己使用时间比较长的一个插件,但是现在好像不能满足我对速度的要求。所以看了这个框架,速度相对比较快。不知道大神能不能单独放置在一个包。

我主要在使用Spacemacs,好像这个插件也和Evil不太兼容,经常出现一些问题。

因为eaf会先拦截按键输入,所以evil的按键是没用的,你要不需要切换到evil-emacs-state下去使用,或者自己hack eaf-monitor-key-event 在里面实现自己的按键逻辑。 比如:

             (cond 
             ;; others conditions

             ;; for pdfviewer
             ((and (eq major-mode 'eaf-mode)
                   (not (evil-emacs-state-p))
                   (string-equal buffer-app-name "pdfviewer"))
              (progn
                (let* ((event last-command-event)
                       (key (make-vector 1 event))
                       (key-command (format "%s" (key-binding key)))
                       (key-desc (key-description key)))
                  (when (or
                         (equal key-command "digit-argument")
                         (member key-desc '("j" "k" "f" "b" "," "." "t" "-" "=" "0" "g" "p" "[" "]")))
                    (if (string-equal key-desc "f")
                        (eaf-call "send_key" buffer-id "SPC")
                      (eaf-call "send_key" buffer-id key-desc))
                    (setq last-command-event nil))))))

evil问题可以在eaf下使用emacs模式 (evil-set-initial-state 'eaf-mode 'emacs)