Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone explain how to build Emacs --with-ns and SVG support on OS X?


  • --with-rsvg isn't working (when librsvg is installed, ie. via Homebrew)

  • FYI, The Emacs Mac port uses webkit to provide SVG support, although that build adds far too many things I don't want.

I want to just compile in support for SVG on Cocoa Emacs, I'm not averse to patching, and if no answers are available, I'll see if I can patch over from the Emacs Mac port

(Assume latest stable version of Emacs 24.2, building from source)


I've tried running brew install emacs --cocoa --svg without success.

share|improve this question
I'm sorry, perhaps this question is off topic here (see FAQ). Please post to Thanks. – Global nomad Feb 12 '13 at 21:26
@Globalnomad - raised on meta. - also see – Slomojo Feb 12 '13 at 21:43
up vote 1 down vote accepted

The installation of the Emacs latest version (25.0.50) works fine using this command:

brew install emacs --HEAD --use-git-head --cocoa --with-gnutls --with-rsvg --with-imagemagick
share|improve this answer
Good news. Still, now I'm hooked on Emacs Mac Port's pixel scrolling. I'll give it a go anyway. Thank you. – Slomojo Nov 19 '14 at 11:21
Yes, that’s the only downside. On the other hand I often had the problem that pixel-wise scrolling was sluggish. Line-wise scrolling is on the other hand a little bit too sensitive, but I also got used to it pretty quickly- – Lenar Hoyt Nov 19 '14 at 20:57
I tried building, however I got ranlib: file: libgnu.a((u64|unistd).o) has no symbols errors. – Slomojo Nov 21 '14 at 4:33
reboot fixed the errant machine... ;) – Slomojo Nov 25 '14 at 23:19
Too busy modeling sea parks – Slomojo Nov 26 '14 at 0:37

I was unable to get this working, and instead went with the Emacs Mac Port

Turns out it's much better than I'd thought.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.