Skip to content

Instantly share code, notes, and snippets.

@rejuvyesh
Created April 5, 2014 06:59
Show Gist options
  • Save rejuvyesh/9988329 to your computer and use it in GitHub Desktop.
Save rejuvyesh/9988329 to your computer and use it in GitHub Desktop.
varible list → string ?
(dolist (mode '(magit-log-edit-mode
log-edit-mode
org-mode
text-mode
haml-mode
sass-mode
yaml-mode
haskell-mode
html-mode
nxml-mode
sh-mode
smarty-mode
clojure-mode
lisp-mode
textile-mode
markdown-mode
js2-mode
css-mode
less-css-mode
matlab-mode
enh-ruby-mode))
;; Learn emacs list to string so that you can add (setup-expecting mode) before add to list
(setup-expecting mode
(add-to-list 'ac-modes mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment