emacs term 将文字 Cz 发送到 bash (后台运行进程)

emacs term 将文字 Cz 发送到 bash (后台运行进程)

我最近从 cli emacs 切换到 gui emacs (25)。我经常使用缓冲区M-x term来运行 cli 工具。切换后,我发现按下C-znow 会最小化 emacs 窗口(并且嘲笑“背景”功能的字面移植),即使聚焦术语缓冲区也是如此。我发现这个问题和答案提出了一种C-z什么都不做的方法,它确实做到了它所说的,但不是我想要的。我希望在 term buffer 中运行的程序移到后台,就像C-z在普通终端仿真器中被推送一样。我还发现关于在邪恶模式下发送文字的对话C-r,这并不适用,因为我没有使用邪恶模式。

e:这是我的 .emacs

(custom-set-variables
 ;; 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.
 '(custom-enabled-themes (quote (manoj-dark)))
 '(package-selected-packages (quote (multi-term slime magit ess))))
(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.
 )

(load "dired")

(global-linum-mode)
(global-auto-revert-mode)

(setq desktop-path '("."))
(desktop-save-mode 1)

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)

(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)

答案1

已解决:卸载多术语。我已安装它但未使用它。它由 .emacs.d 中的配置加载,而加载它显然会弄乱普通旧术语中的键绑定。

相关内容