大家好:我使用的是 ubuntu 22.10。最近(就像今天一样),当我使用 emacs --debug-init 启动 emacs 时,我开始在最底层出现错误。我最近没有更新 emacs 或 ubuntu。
就可能性而言,我的 dot emacs 文件中只在一个位置有 linum-mode,它就在这里。
.emacs文件中的代码(setq inhibit-startup-message t) ;; Hide the startup message
(load-theme 'material t) ;; Load material theme
(global-linum-mode t) ;; Enable line numbers globally
Run Code Online (Sandbox Code Playgroud)
我可以把这条线拿出来,看看是否可以避免错误,但是,用这种方法,我不会学到任何东西,我需要更好地理解我的 dot emacs 文件以及 emavc 启动引擎盖下的工作原理。感谢您的任何见解。哦,我已经用谷歌搜索并将继续谷歌搜索,但到目前为止还没有运气。
Debugger entered--Lisp error: (void-function global-linum-mode)
(global-linum-mode t)
load-with-code-conversion("/home/markleeds/.emacs" "/home/markleeds/.emacs" t t)
load("~/.emacs" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode -0x14a857e1dea6ad3f>) #f(compiled-function () #<bytecode -0x1f3c61addc0b8a75>) t)
command-line()
normal-top-level()
Run Code Online (Sandbox Code Playgroud)
我什么也没尝试。最初,我执行了 emacs myfile.txt 并得到了一个较短的错误。然后它告诉我使用该--debug-init选项来获取回溯,这就是我所做的。我会更多地谷歌搜索,因为我认为一定有人遇到过类似的问题并解决了它。我使用的是 emacs 29.1。谢谢。
我更仔细地用谷歌搜索,这次更加坚定,答案是将我在那里的那一行更改为以下行:
(global-display-line-numbers-mode 1) ;; Enable line numbers globally
Run Code Online (Sandbox Code Playgroud)
似乎停止工作的原始行用于旧版本的 emacs,但此较新的命令适用于更高版本。感谢所有阅读我的问题的人,并对噪音表示歉意。
| 归档时间: |
|
| 查看次数: |
503 次 |
| 最近记录: |