"Too many open files" - how can I set the ulimit -n value for emacs on Lion?
Before



Edit:

sudo vi /etc/launchd.conf


Append:

limit maxproc   100000  200000
limit maxfiles  100000  200000


Reboot