Skip to content

Instantly share code, notes, and snippets.

@elitrout
elitrout / choose-mode.el
Last active August 29, 2015 14:16
Emacs lisp for distinguishing mode between matlab, objective-c, c, c++. Forked from: https://github.com/bananajr/dotfiles/blob/master/emacs.d/lisp/choose-mode.el
;; Emacs lisp for distinguishing mode between matlab, objective-c, c, c++.
;; Usage: put the following into emacs init file
;; (require 'choose-mode)
;; (when (featurep 'choose-mode)
;; (push '("\\.h\\'" . choose-mode-for-dot-h) auto-mode-alist)
;; (push '("\\.m\\'" . choose-mode-for-dot-m) auto-mode-alist))
(provide 'choose-mode)
;;;======================================================================