我正在学习 Emacs,目前专注于 orgmode,但遇到了一些问题。我创建了一个包含以下内容的测试文件(名为 orgtest.org):
* h1
** s1
1) l1
2) l2
3) l3
** s2
* h2
Run Code Online (Sandbox Code Playgroud)
我尝试将其导出为 PDF 以使用C-x C-e p. 这不起作用,所以我尝试了 Mx org-export-as-pdf,它也不起作用。两者都产生:
导出为 PDF...
导出到 LaTeX...
正在保存文件 /home/dodge/orgfile.tex...
写/home/dodge/orgfile.tex
LaTeX 导出完成,推送到杀死环和剪贴板
正在处理 LaTeX 文件...
(Shell 命令失败,代码 127 和一些错误输出)[2 次]
处理 LaTeX 文件...完成
org-export-as-pdf:未生成 PDF 文件
这是什么原因?我使用的是 Ubuntu 12.04 和 Emacs 23.3.1
我收到了错误
源文件`〜/ .emacs.d/elpa/cmake-mode-20110824/cmake-mode.el'比字节编译的文件更新
当我尝试在cmake模式下打开CMakeLists.txt文件时.
我的.emacs包含(部分)以下内容:
(setq load-path (cons
(expand-file-name "~/.emacs.d/elpa/cmake-mode-20110824")
load-path))
(require 'cmake-mode)
(setq auto-mode-alist
(append '(("CMakeLists\\.txt\\'" . cmake-mode)
("\\.cmake\\'" . cmake-mode))
auto-mode-alist))
Run Code Online (Sandbox Code Playgroud)
回溯:
Debugger entered--Lisp error: (wrong-type-argument char-table-p nil)
char-table-parent(nil)
cmake-mode()
set-auto-mode-0(cmake-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer CMakeLists.txt> "~/CMakeLists.txt" nil nil "~/CMakeLists.txt" (19923691 2049))
find-file-noselect("~/CMakeLists.txt" nil nil t)
find-file("~/CMakeLists.txt" t)
call-interactively(find-file nil nil)
Run Code Online (Sandbox Code Playgroud)
我很困惑为什么会发生这种错误.免责声明:我是emacs和elisp noob.
如何C-;在 Emacs 中绑定函数?我尝试使用带有转义字符的括号表示法:
(global-set-key [C-\;] 'my-func)
Run Code Online (Sandbox Code Playgroud)
和kbd:
(global-set-key (kbd "<C-;>") 'my-func)
Run Code Online (Sandbox Code Playgroud)
不可能吗?如果是这样,那为什么要承认和弦(C-; is undefined)的存在?
我正在运行 Emacs 24.1.1。
我通过sudo pip install scrapy. 它将python模块安装到站点包中,我可以在我的python环境中导入scrapy。但是,尝试使用命令行工具会引发错误:
scrapy startproject demo
Run Code Online (Sandbox Code Playgroud)
有错误The program 'scrapy' is not currently installed.并告诉我安装 python-scrapy。
whereis scrapy没有输出。厌倦了试图追踪安装路径,所以我跑了find -name "*crap*",它也没有发现任何有用的东西。pip 似乎没有安装命令行工具。这个 pip 安装我缺少什么?