Mat*_*ell 12
您似乎无法为不同的缓冲区设置单独的颜色主题,但您可以为不同的帧设置它.您可以在http://www.emacswiki.org/emacs/ColorTheme#toc8找到有关设置每帧颜色主题的说明.
您可以使用加载挂钩在加载模式时自动更改颜色主题,但它会将更改应用于所有缓冲区.
使用加载钩子加载模式时,可以更改颜色主题.例如
(add-hook 'dired-mode-hook 'color-theme-emacs-nw)
Run Code Online (Sandbox Code Playgroud)
编辑:这是一个使用不同颜色主题在新框架中打开shell的函数:
(defun my-shell ()
(interactive)
(let ((color-theme-is-global nil))
(select-frame (make-frame))
(color-theme-gnome)
(shell)))
Run Code Online (Sandbox Code Playgroud)