Convert Symbol to a String in Elisp

Cristian picture Cristian · Jan 10, 2011 · Viewed 10.3k times · Source

How can I convert a symbol type into a string in Emacs lisp?

I wasn't able to find a symbol-to-string function or anything similar.

Answer

Trey Jackson picture Trey Jackson · Jan 10, 2011

Try using symbol-name:

(symbol-name 'some-symbol)