总结一下snails白屏的解决办法
错误及解决办法:
1、Symbol’s function definition is void: string-replace :emacs27没有subr包
提供两种解决办法:
2、nothing selected:snails被编译了
把snails的elc文件删掉。推荐重新安装:按照snails readme安装。若是用了use-package及straight可以用:build (:not compile)防止安装时编译snails。抄了多位大佬的作业,贴一下简单的配置:(:hook (window-setup . snails)可以把snails当dashboard用)
;; Setup snails
(use-package snails
:straight (snails :type git :host github :repo "manateelazycat/snails" :build (:not compile))
:if (display-graphic-p)
:hook (window-setup . snails)
:bind ("M-SPC" . snails)
:custom-face
(snails-content-buffer-face ((t (:background "#111" :height 110))))
(snails-input-buffer-face ((t (:background "#222" :foreground "gold" :height 110))))
(snails-header-line-face ((t (:inherit font-lock-function-name-face :underline t :height 1.1))))
:config
(when (version< emacs-version "28.0")
(with-eval-after-load "snails"
(fset 'string-replace 'replace-regexp-in-string)))) ;; Fix up "Symbol’s function definition is void: string-replace"
