emacs - 在不活动期间隐藏 Emacs 回显区域

标签 emacs appearance

回显区域是 Emacs 底部模式线下方的线:

                     ~                       ~
                     |                       |
                     +-----------------------+
                     |-U:--- mode-line       |
                     +-----------------------+
                     | M-x echo-area         |
                     +-----------------------+

现在模式线是高度可定制的,而回声区域更加严格(并且很多时候未使用)。问题很简单:是否可以在不活动期间隐藏回声区域并在需要您注意时重新显示它:

  ~                       ~             ~                       ~
  |                       |             |                       |
  |                       |             +-----------------------+
  |                       |             |-U:--- mode-line       |
  +-----------------------+             +-----------------------+
  |-U:--- mode-line       |             | M-x echo-area         |
  +-----------------------+             +-----------------------+

          Inactive                                Active

这类似于当您将鼠标悬停在链接上时 Google Chrome 显示 URL 的方式以及默认情况下隐藏命令行的 Firefox 插件 Pentadactyl。

最佳答案

这不是您所问问题的答案,它不会为您提供迷你缓冲区,但会回收一些屏幕空间

(defun toggle-mode-line () "toggles the modeline on and off"
  (interactive) 
  (setq mode-line-format
    (if (equal mode-line-format nil)
        (default-value 'mode-line-format)) )
  (redraw-display))

(global-set-key [M-f12] 'toggle-mode-line)

为了完整起见,勒德模式的标志

(global-set-key [f12] '(lambda () (interactive) (menu-bar-mode nil) (scroll-bar-mode nil)))

当然,最好从这个开始:

(cond ((> emacs-major-version 20)
       (tool-bar-mode -1) ; introduced in emacs 21
       (menu-bar-mode -1)
       (scroll-bar-mode -1)
       (menu-bar-showhide-fringe-menu-customize-disable)
       (blink-cursor-mode -1)
       (windmove-default-keybindings 'meta)))

我将热切地等待这个问题的答案,并将其纳入勒德分子模式

关于emacs - 在不活动期间隐藏 Emacs 回显区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5079466/

相关文章:

emacs - 无法在 org v9.1.9 上将 #+TITLE 添加到 org 文件并导出为 HTML

emacs - 如何跳转到 EMACS 中的方案定义

html - 表格没有出现,但它的内容出现了

VB.Net - 在多列 ListView 中选择整行,而不仅仅是第一项

macOS X Mojave - 浅色和深色外观模式切换

emacs - eval-after-load 与模式 Hook

linux - Emacs 开始于 x 窗口版本

emacs - 无法评估 nrepl + emacs 中的表单

swift - 按下时 NSButton 变为灰色

iphone - UISegmentedcontrol 外观导致问题