Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Emacs 有几种模式覆盖了自定义选项卡栏缓冲区组功能:(_Emacs_Tabs_Customization - Fatal编程技术网

Emacs 有几种模式覆盖了自定义选项卡栏缓冲区组功能:(

Emacs 有几种模式覆盖了自定义选项卡栏缓冲区组功能:(,emacs,tabs,customization,Emacs,Tabs,Customization,我定制了tabbar缓冲区组功能,但成功率有限,但某些模式通常会覆盖此功能。例如,java模式和节俭模式要求它们存在于各自的选项卡组中,但我希望它们使用相同的用户组 有人能帮我强化所需的tabbar组行为吗?模式挂钩能解决这个问题吗 简化条件似乎可以解决问题 ;; Tab groups: irc, emacs, user (defun tabbar-buffer-groups () (list (cond ;; IRC

我定制了tabbar缓冲区组功能,但成功率有限,但某些模式通常会覆盖此功能。例如,java模式和节俭模式要求它们存在于各自的选项卡组中,但我希望它们使用相同的用户组

有人能帮我强化所需的tabbar组行为吗?模式挂钩能解决这个问题吗


简化条件似乎可以解决问题

    ;; Tab groups: irc, emacs, user
    (defun tabbar-buffer-groups ()
      (list (cond
             ;; IRC
             ((eq major-mode 'rcirc-mode) "irc")
             ;; Emacs-internal / dired
             ((or (string-match "^\\*" (buffer-name)) (eq major-mode 'dired-mode)) "emacs")
             ;; all other buffers
             (t "user"))))

tabbar.el包含一个详细的tabbar缓冲区组的默认示例-这通常是进行您自己修改的最佳起点。@显然,lawlist,但是缺少文档,所以我在这里询问。是的,我尝试过关闭并再次打开它!