From 2a3bf9a2a44b0cb5f06751e5de0128ac3f021541 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 3 Jul 2013 15:14:38 +0900 Subject: [PATCH] emacs.el: add remember-major-modes-mode sexps --- emacs.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 38cefed..75ee8ee 100644 --- a/emacs.el +++ b/emacs.el @@ -683,7 +683,13 @@ found, otherwise returns nil." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; some modes and hooks -;; todo: reg major mode when set explicitly +(and (fetch-library + "https://raw.github.com/10sr/emacs-lisp/master/remember-major-modes-mode.el") + (require 'remember-major-modes-mode nil t) + (remember-major-modes-mode 1) + (add-hook 'after-change-major-mode-hook + 'remember-major-modes-remember)) + ;; Detect file type from shebang and set major-mode. (add-to-list 'interpreter-mode-alist