Created
October 23, 2014 21:17
-
-
Save mpolden/add875e1b11ebb8e0762 to your computer and use it in GitHub Desktop.
Set major-mode for buffers created with C-x b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default major-mode | |
(lambda () | |
(unless buffer-file-name | |
(let ((buffer-file-name (buffer-name))) | |
(set-auto-mode t))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment