all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting ac-sources
@ 2015-02-16  9:35 Florian Lindner
  0 siblings, 0 replies; only message in thread
From: Florian Lindner @ 2015-02-16  9:35 UTC (permalink / raw
  To: help-gnu-emacs

Hello,

I set my ac-sources of auto-complete like that

(add-hook 'c-mode-common-hook (lambda()
   (setq ac-sources '(ac-source-semantic ac-source-yasnippet))))


Now I open a cpp file and look at the variable ac-sources which has the 
value:

(ac-source-yasnippet ac-source-gtags ac-source-semantic ac-source-yasnippet)

Why not just (ac-source-semantic ac-source-yasnippet)? It seems the setq 
appended instead of setting the list?

I'm a elisp newbie and hope for an explanation.

Thanks,
Florian




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-16  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-16  9:35 Setting ac-sources Florian Lindner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.