From 3f310079901a8f650218995f424a077cb31322b8 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 17 Jan 2013 16:02:20 +0900 Subject: [PATCH] add prefs about major-mode detection --- emacs.el | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index fe2a1bb..a761385 100644 --- a/emacs.el +++ b/emacs.el @@ -280,9 +280,9 @@ found, otherwise returns nil." system-name (abbreviate-file-name default-directory))) -(run-with-idle-timer 3 - t - 'my-message-current-info) +;; (run-with-idle-timer 3 +;; t +;; 'my-message-current-info) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; minibuffer @@ -653,6 +653,17 @@ found, otherwise returns nil." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; some modes and hooks +;; todo: reg major mode when set explicitly + +;; Detect file type from shebang and set major-mode. +(add-to-list 'interpreter-mode-alist + '("python3" . python-mode)) +(add-to-list 'interpreter-mode-alist + '("python2" . python-mode)) + +;; (add-hook default-majorg-mode +;; 'my-detect-major-mode-from-shebang) + ;; http://fukuyama.co/foreign-regexp '(and (fetch-library "https://raw.github.com/k-talo/foreign-regexp.el/master/foreign-regexp.el"