令人困惑的是,emacsclient表示在执行emacs --daemonbash 后无法找到套接字:
$ ps aux | grep emacs
shiangro 1744 0.0 0.0 2432784 604 s000 S+ 1:03?? 0:00.00 grep emacs
$ /usr/local/bin/emacs --daemon
("emacs")
Starting Emacs daemon.
Restarting server
$ /usr/local/bin/emacsclient -t
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: No socket or alternate editor. Please use:
--socket-name
--server-file (or environment variable EMACS_SERVER_FILE)
--alternate-editor (or environment variable ALTERNATE_EDITOR)
Run Code Online (Sandbox Code Playgroud)
我的.emacs中有这个设置:
(server-start)
(setq server-socket-dir "~/.emacs.d/server")
Run Code Online (Sandbox Code Playgroud)
它工作,服务器文件~/.emacs.d/server/server就在那里,但emacsclient说它找不到套接字,所以很烦人,我必须使用该 …
给了这张表:
| a | b | c |
|---+---+----+
| 3 | 4 | |
| 1 | 2 | |
| 1 | 3 | |
| 2 | 2 | |
Run Code Online (Sandbox Code Playgroud)
我想得到两列 a 和 b 的点积,结果应该等于 (3*4)+(1*2)+(1*3)+(2*2) 即 21。
我不想使用笨拙的公式,(B1*B2+C1*C2+D1*D2+E1*E2)因为实际上我有一张大表等待计算。
我知道 emacs 的 Calc 工具有一个“vprod”功能可以做这些事情,但我不知道如何将整列转换为向量。
谁能告诉我如何完成这项任务,不胜感激!