Skip to content

Instantly share code, notes, and snippets.

@barik
Created July 6, 2012 02:31
Show Gist options
  • Save barik/3057703 to your computer and use it in GitHub Desktop.
Save barik/3057703 to your computer and use it in GitHub Desktop.
Emacs Buffer Change Mode
(setq default-major-mode (lambda ()
(let ((buffer-file-name
(or buffer-file-name (buffer-name))))
(set-auto-mode))))
@barik
Copy link
Author

barik commented Jul 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment