company-clang is slow under Cocoa Emacs - macos

I'm using the GUI version emacs on Mac.
I set company-idle-delay to 0, but emacs also delay several seconds when completes with company-clang.
But, when I start emacs in terminal, company completes very fast. What is the differents between GUI / terminal emacs?
I installed emacs with brew install emacs --with-cocoa, version 24.5

Related

How to launch emacs in console on Catalina?

Before updating to Catalina, I was using emacs in the terminal. When I updated to Catalina, emacs was no longer found. So, I installed it with Homebrew. Now, emacs launches in a GUI, its own window. How can I get the 'emacs' command running emacs in the terminal again?
The flag -nw is always used to start emacs in a non-GUI mode. So, you'd use /Applications/Emacs.app/Contents/MacOS/Emacs -nw. Note that this is a Ruby wrapper around the Emacs binary, so on Catalina you may have to allow full disk access to Ruby as detailed in this Emacs.SE post.

OSX 10.9.5, Gnuplot 4.6.6 and XQuartz 2.7.7 don't work together

I'm trying to use gnuplot at OSX with X11 terminal. I downloaded the newest version of XQuartz 2.7.7 and I brewed gnuplot 4.6.6 --with-x option. However, when I try
gnuplot> plot(sin(x))
XQuartz opens, but there is no window with the plot. When I do "Show All Windows", there is nothing at all. I can gnuplot into png. I can also open "xterm" through the terminal. I tried to reinstall both programs many times, but nothing seems to work.
Any idea where could be a problem? (I need these two tools because of Octave.)
Thank you

cannot link homebrew emacs

Recently I uninstalled and reinstalled Homebrew entirely on my macbook (OSX 10.9.5) because there was some problem with my Python. Then I reinstalled all the programs in Homebrew and everything worked fine except for Emacs. When I tried to link emacs
$ brew link emacs
Linking /Users/myname/homebrew/Cellar/emacs/24.3... 21 symlinks created
I expected it to create a shortcut in Applications and I open the Emacs GUI from there, but Emacs is not showing up there and I don't know how I can open the GUI. What did I do wrong and how can I link my Emacs?
Try running it from the command line to see what's wrong:
emacs --debug-init
The program is likely not able to find some elc files or something among those lines.
If all fails, try using the master branch (I update my emacs frequently, such as today).
brew install emacs --HEAD --use-git-head --cocoa --srgb --with-xml2 && brew linkapps

using x11 emacs in mountain lion

I have been trying to use macport's installation by using sudo port install emacs +x11 on my laptop with mountain lion, but every time I open emacs in terminal, it opens in the terminal without any GUI. This also happens if I try to open emacs directly in an xquartz terminal session. Has anyone had any luck with installing the x11 version of emacs on mountain lion? And if so, how? Thank you!
Turns out apple cut the link between terminal and xquartz. If I open emacs in xterm, it will run just fine. I found this to be the case even when I was using terminal with an ssh server. Looks like apple's terminal isn't going to be all that helpful from here on out.
Edit; I'm not sure if it was an update to xQuartz, but the problem has been fixed. When I type in an x11 app into the normal terminal app, it will open xQuartz as normal.

Install Ruby support for VIM on Mac OS X

Mac OS X 10.6 (Snow Leopard) has VIM pre-installed (version 7.2), which is great.
It also has Ruby pre-installed (version 1.8.7) which is great too.
However, I want Ruby autocompletion in VIM. Looking up the VIM version (vim --version) shows -ruby (i.e. ruby support isn't enabled).
How to enable ruby for my VIM installation?
While it's possible to build and install your own Vim to replace the pre-installed version, I don't recommend it. It's far easier to just use MacVim instead:
http://code.google.com/p/macvim/
MacVim is a very Mac-friendly version of Vim, and it's got Ruby support already built in. It can be used as both a GUI and Terminal application. (Check out :help macvim-start from within MacVim for details.)
+1 for MacVim - I also use it and love it.
But if you want a fresh vim compiled with ruby support, you can build one from scratch on OSX by following this article:
http://brilliantcorners.org/2011/02/building-vim-on-osx-snow-leopard/
Only took me about 5 minutes to do...

Resources