擅长:python、mysql、java
<p>我不使用Aquamacs,也无法重现您所描述的行为,不过,请尝试使用此代码将任一窗口切换为“专用”。在启动并运行emacs时,我首先要做的就是将窗口锁定到缓冲区。也许这对你有帮助。在</p>
<p>将代码添加到“.emacs”中,然后“标记”(选择)区域的-<;key down>;,然后“M-x eval region”对其求值。或者保存并重新启动emacs。在</p>
<pre><code>(global-set-key [pause] 'window-dedication-toggle)
(defun window-dedication-toggle (&optional window force quiet)
"toggle or ensure the 'dedicated' state for a window"
(interactive)
(let* ((toggle t) (window (if window window (selected-window))) (dedicated (window-dedicated-p window)))
(cond ((equal force "on") (setq toggle (eq dedicated nil)))
((equal force "off") (setq toggle (eq dedicated t))))
(if toggle (progn
(setq dedicated (not dedicated))
(set-window-dedicated-p window dedicated)
(if (not quiet)
(message "window %sdedicated to %s" (if (not dedicated) "no longer " "") (buffer-name)))))))
</code></pre>