I am new to elisp but I am trying to spice up my .emacs a little.
I am trying to define some paths, but having problems with creating a list of paths (and setting the list for YaSnippet more specifically).
When I evaluate the list I get a list of the symbol name (and not the symbol values as yassnippet want).
I got the code working but have feeling that there is a better way to do this?
Here is the working code:
;; some paths
(setq my-snippets-path "~/.emacs.d/snippets")
(setq default-snippets-path "~/.emacs.d/site-lisp/yasnippet/snippets")
;; set the yas/root-directory to a list of the paths
(setq yas/root-directory `(,my-snippets-path ,default-snippets-path))
;; load the directories
(mapc 'yas/load-directory yas/root-directory)