Emacs 对于我尝试安装的所有软件包都显示“错误的类型参数:lisp:”

问题描述 投票:0回答:1

我正在尝试安装和配置 emacs,但遇到了麻烦,因为即使我已经下载并安装了这些软件包,但在加载时似乎找不到它们。我收到此错误:

错误的类型参数:listp,C:/directorypath/Pandoc/pandoc

这是我的 init.el 中的代码:

(custom-set-variables
 (setq markdown-command "C:/Users/myName/AppData/Local/Pandoc/pandoc.exe")
 (setq ag-executable "G:/emacs-extensions/ag/ag/ag.el-master/ag.el-master/ag.el")
 (setq find-program "G:/emacs-extensions/findutilsemacs/findutils-4.2.30-5-w64-bin/bin/find.exe")
 (add-to-list 'load-path "G:/emacs-extensions/ag/ag/ag.el-master/ag.el-master/ag.el")
 (require 'ag)

 ;;Hunspell
 (setq ispell-program-name "hunspell")
 (setq ispell-hunspell-dict-paths-alist
       '(("en_GB" "c:/hunspell/en_GB.aff")))
 (setq ispell-local-dictionary "en_GB")
 (setq ispell-local-dictionary-alist
       '(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8)))
 (flyspell-mode 1)
 
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(exec-path
   '("c:/Python312/Scripts/" "C:/Python312/" "C:/Program Files (x86)/Common Files/Oracle/Java/javapath" "C:/Python310/Scripts/" "C:/Python310/" "C:/Program Files/Microsoft/jdk-11.0.12.7-hotspot/bin" "C:/Windows/system32" "C:/Windows" "C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/Windows/System32/OpenSSH/" "C:/Program Files (x86)/NVIDIA Corporation/PhysX/Common" "C:/Program Files/dotnet/" "C:/Program Files/Git/cmd" "C:/Program Files/Docker/Docker/resources/bin" "C:/ProgramData/DockerDesktop/version-bin" "C:/ProgramData/chocolatey/bin" "C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/" "C:/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn/" "C:/Program Files/Azure Data Studio/bin" "C:/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn/" "C:/Program Files/Microsoft SQL Server/150/Tools/Binn/" "C:/Program Files/Microsoft SQL Server/150/DTS/Binn/" "C:/Program Files/NVIDIA Corporation/NVIDIA NvDLISR" "C:/Program Files/PuTTY/" "C:/Program Files/nodejs/" "G:/emacs-extensions/" "C:/Users/myName/AppData/Local/Microsoft/WindowsApps" "C:/Users/myName/.dotnet/tools" "C:/Users/myName/AppData/Local/Programs/Microsoft VS Code/bin" "C:/Users/myName/AppData/Local/Programs/Azure Data Studio/bin" "C:/Program Files/Azure Data Studio/bin" "C:/Users/myName/AppData/Local/GitHubDesktop/bin" "C:/Users/myName/AppData/Roaming/npm" "g:/emacs-29.3/libexec/emacs/29.3/x86_64-w64-mingw32" "G:/emacs-extensions/findutilsemacs/findutils-4.2.30-5-w64-bin/bin" "C:/Users/myName/AppData/Local/Pandoc/" "G:/emacs-extensions/ag/ag/ag.el-master/ag.el/master/" "G:/emacs-extensions/hunspell/")))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )```


I have been trying to edit the directory paths but it isn't helping.

Edit: I moved the setq and hunspell lines out of custom set variables and now it isn't throwing any errors but it is still not doing anything. It says [no match] when I try to use the commands.
installation configuration emacs
1个回答
0
投票
(custom-set-variables

;;;;;;;; None of this (vvvvv) should be here!

 (setq markdown-command "C:/Users/myName/AppData/Local/Pandoc/pandoc.exe")
 (setq ag-executable "G:/emacs-extensions/ag/ag/ag.el-master/ag.el-master/ag.el")
 (setq find-program "G:/emacs-extensions/findutilsemacs/findutils-4.2.30-5-w64-bin/bin/find.exe")
 (add-to-list 'load-path "G:/emacs-extensions/ag/ag/ag.el-master/ag.el-master/ag.el")
 (require 'ag)

 ;;Hunspell
 (setq ispell-program-name "hunspell")
 (setq ispell-hunspell-dict-paths-alist
       '(("en_GB" "c:/hunspell/en_GB.aff")))
 (setq ispell-local-dictionary "en_GB")
 (setq ispell-local-dictionary-alist
       '(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8)))
 (flyspell-mode 1)
 
;;;;;;;; None of this (^^^^^) should be here!


 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(exec-path
   '(...)))
© www.soinside.com 2019 - 2024. All rights reserved.