Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Created April 16, 2014 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shepmaster/10877484 to your computer and use it in GitHub Desktop.
Save shepmaster/10877484 to your computer and use it in GitHub Desktop.
Allow dabbrev to use symbols for non-symbols and vice-versa
(defun dabbrev-allow-symbols ()
(setq-local dabbrev-abbrev-skip-leading-regexp ":"))
(add-hook 'ruby-mode-hook 'dabbrev-allow-symbols)
(add-hook 'clojure-mode-hook 'dabbrev-allow-symbols)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment