Emacs Lisp Tip: Function Variable and Symbol

| 分类 Emacs  | 标签 emacs  lisp 
  • How to check whether a function is defined? *fboundp*
(fboundp 'functioname)
  • How to check whether a variable is defined? *boundp
(boundp 'varame)
  • How to Stringify a symbol, for example: 'aa –> "aa" ? *symbolame*
(symbolame 'aa)
  • How to make a named variable ? *intern*
(intern "aa")
  • How to check whether a feature is loaded? *featurep*
(featurep 'magit)

上一篇     下一篇