在emacs中是否可以更改滚动条的颜色?(注意:不是XEmacs)
如果有影响的话,我在Ubuntu 8.10上运行emacs 22。
在emacs中是否可以更改滚动条的颜色?(注意:不是XEmacs)
如果有影响的话,我在Ubuntu 8.10上运行emacs 22。
在什么环境下?例如,在Carbon EMACS中,滚动条小部件来自carbon本地集合;如果是这样,你不能真正改变颜色。
GnuEmacs can draw its own “native” scroll bars, which are quite customizable. In my opinion, this also gives the best results for users of ColorTheme. Details follow:
Build GnuEmacs with the following options passed to ./configure:
--without-toolkit-scroll-bars --with-x-toolkit=no
Then try a ColorTheme, or:
M-x customize-face RET scroll-bar RET
You can set the foreground/background colors, border color/width, etc. There is a separate variable called scroll-bar-width.
M-x describe-variable ret system-configuration-options ret
命令查看系统配置选项! - Andrew Cox不要脸地从XEmacs的常见问题解答中摘取
以下是如何使用资源更改滚动条颜色的概述:
! Motif scrollbars
Emacs*XmScrollBar.Background: skyblue
Emacs*XmScrollBar.troughColor: lightgray
! Athena scrollbars
Emacs*Scrollbar.Foreground: skyblue
Emacs*Scrollbar.Background: lightgray