Emacs:" C-x#"杀死缓冲区

时间:2016-01-19 18:50:50

标签: emacs elisp emacs-helm

我一直在寻找这个问题的答案,我找到了

Emacs Client: difference between C-x k and C-x #Emacs C-x C-c overriding save-buffers-kill-terminal if within last open frame

但它并不完全相关。问题在于:

我将emacs作为守护进程启动并使用emacsclient连接到它。 我主要使用带有-nw选项的OS X终端内的emacsclient。

我使用的specfic命令是: /Applications/Emacs.app/Contents/MacOS/bin/emacsclient / tmp / foo -nw -c -s / tmp / emacs501 / work_guigo

所以我在/ tmp /中有两个文件,名为foo和baa。 在我的terminal.app中,我打开了foo /Applications/Emacs.app/Contents/MacOS/bin/emacsclient / tmp / foo -nw -c -s / tmp / emacs501 / work_guigo

Emacs告诉我,"完成缓冲后,键入C-x#",所以我这样做。 我现在已经完成了它,但是我今天没有完成它,所以我希望foo文件保留在我的" C-x b"缓冲清单。

所以我回到了航站楼,我打开了咩 /Applications/Emacs.app/Contents/MacOS/bin/emacsclient / tmp / baa -nw -c -s / tmp / emacs501 / work_guigo

现在当我做一个C-x b时,我不会在开放缓冲区列表中看到foo。

这很糟糕。我该怎么办?

---一些额外的信息: emacs 24.5 使用helm for" C-x b"

1 个答案:

答案 0 :(得分:2)

有时,我会找到自己问题的答案。

在这种情况下,这是一个问题

(setq server-kill-new-buffers nil)

靠近init.el

的顶部