Use company-dabbrev-code too when using company-elisp or company-capf.