aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 712c3d1ba..5421e7805 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -80,7 +80,7 @@ class Emacs < Formula
if build.include? "cocoa"
# Patch for color issues described here:
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8402
- if build.include? "srgb"
+ if build.include? "srgb" and not build.head?
inreplace "src/nsterm.m",
"*col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0];",
"*col = [NSColor colorWithDeviceRed: r green: g blue: b alpha: 1.0];"
@@ -129,14 +129,17 @@ class Emacs < Formula
Emacs.app was installed to:
#{prefix}
- To link the application to a normal Mac OS X location:
- brew linkapps
- or:
- ln -s #{prefix}/Emacs.app /Applications
+ To link the application to a normal Mac OS X location:
+ brew linkapps
+ or:
+ ln -s #{prefix}/Emacs.app /Applications
- A command line wrapper for the cocoa app was installed to:
- #{bin}/emacs
+ A command line wrapper for the cocoa app was installed to:
+ #{bin}/emacs
EOS
+ if build.include? "srgb" and build.head?
+ s << "\nTo enable sRGB, use (setq ns-use-srgb-colorspace t)"
+ end
end
return s
end