plugins - 垂直打开 'undo-tree-visualize side by side to the buffer, and not "”

标签 plugins emacs undo-redo

有什么办法可以让undo-tree-mode在“水平”缓冲区中显示可视化(即 C-x 3 与 C-x 2)?

What I want](![enter image description here

最佳答案

根据@Tom's suggestion ,我提出了一个仅适用于撤消树的解决方案:

(defadvice undo-tree-visualize (around undo-tree-split-side-by-side activate)
  "Split undo-tree side-by-side"
  (let ((split-height-threshold nil)
        (split-width-threshold 0))
  ad-do-it))

2017-04-29:defadvice 现已弃用,取而代之的是 advice-add。上述解决方案的更新版本如下:

(defun undo-tree-split-side-by-side (original-function &rest args)
  "Split undo-tree side-by-side"
  (let ((split-height-threshold nil)
        (split-width-threshold 0))
    (apply original-function args)))

(advice-add 'undo-tree-visualize :around #'undo-tree-split-side-by-side)

关于plugins - 垂直打开 'undo-tree-visualize side by side to the buffer, and not "”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7225054/

相关文章:

python - PyQt:访问子菜单并将其添加到现有上下文菜单的基本示例?

C++,查找未使用的代码并包含

emacs 24自动完成yasnippet

emacs - 什么 Emacs Lisp 函数对 `require` 来说就像 `autoload` 对 `load` 一样?

emacs - 拼写检查在 emacs 文本编辑器中不起作用

iphone - 在 Paint Application 中撤消绘图

plugins - aoColumnDefs 和 aoColumns 的区别

xcode4 - X代码 4.2.1 : Undo operation is not working properly

php - Web 应用程序中的 "Undoing deletes"?

python - 如何为 PyDev 配置 Eclipse? Python 没有出现在首选项窗口中