怎么配置mathpix.el的截图工具?

查了下文档

(defcustom mathpix-screenshot-method "gnome-screenshot -a -f %s"
  "The tool to capture screenshots."
  :type '(choice
          (const :tag "gnome-screenshot" "gnome-screenshot -a -f %s")
          (const :tag "scrot" "scrot -s %s")
          (const :tag "gm" "gm import %s")
          (const :tag "imagemagick/import" "import %s")
          (const :tag "imagemagick/import + xclip to save to clipboard"
                 "export filename=\"%s\"; import png:\"$filename\" ;xclip -selection clipboard -target image/png -filter < \"$filename\" &>/dev/null")
          (const :tag "xfce4-screenshooter" "xfce4-screenshooter -r -o cat > %s")
          ;; screenshot method in ms-windows, /capture=4 stands for interactive.
          (const :tag "IrfanView" "i_view64 /capture=4 /convert=\"%s\"")
          ;; screenshot script in osx, -i stands for interactive,
          ;; press space key to toggle between selection and
          ;; window/application mode.
          (const :tag "screencapture" "screencapture -i %s")
          ;; take an image that is already on the clipboard, for Linux
          (const :tag "xclip"
                 "xclip -selection clipboard -t image/png -o > %s")
          ;; take an image that is already on the clipboard, for Windows
          (const :tag "imagemagick/convert" "convert clipboard: %s")
          (function :tag "Custom function"))
  :group 'mathpix)

我的配置如下

dotspacemacs-additional-packages '(
(mathpix :location (recipe :fetcher github :repo "jethrokuan/mathpix.el" :files ("*.el" "dist")))
)

(defun dotspacemacs/user-config ()
(use-package mathpix
    :custom ((mathpix-app-id "不给看")
             (mathpix-app-key "不给看"))
    :config
    (setq mathpix-screenshot-method "scrot")
    )
)

这个 id 和 key 都漏了?

我改下,忘记了

(defun dotspacemacs/user-config ()
(use-package mathpix
    :custom ((mathpix-app-id "不给看")
             (mathpix-app-key "不给看"))
    :config
    (setq mathpix-screenshot-method "scrot -s %s")
    )
)

我这么改报错了 error in process sentinel: Wrong type argument: char-or-string-p, nil

不给看 哈哈哈哈 :rofl:

换个 key 吧,可以看到修改记录的