感觉还挺好看的
安装:
brew tap railwaycat/emacsmacport
brew edit emacs-mac
- Add the following code before
def install
:
patch do
url "https://gist.github.com/lululau/90dbffb613c216f046ff14ed37b586b5/raw/32dceaf9a45e8dbdfe793852f88e15cbaedec8d8/emacs-mac-title-bar.patch"
sha256 '30c89405541f4383bb1bb9fa54f22b82d5144f9cdef8f313a72271ef72bf51ed'
end
brew install emacs-mac --with-spacemacs-icon
透明效果默认不开启,若要开启:
defaults write org.gnu.Emacs TransparentTitleBar DARK
或
defaults write org.gnu.Emacs TransparentTitleBar LIGHT
若要禁用透明效果:
defaults write org.gnu.Emacs TransparentTitleBar NO
若要隐藏标题栏上的文档图标:
defaults write org.gnu.Emacs HideDocumentIcon YES
开启或禁用透明效果后需要创建新的 Emacs Frame 或重启 Emacs 才会生效