Search code examples
stringelispsymbols

Convert Symbol to a String in Elisp


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.


Solution

  • Try using symbol-name:

    (symbol-name 'some-symbol)