Browse Source

add prefs about major-mode detection

pull/1/head
10sr 12 years ago
parent
commit
3f31007990
1 changed files with 14 additions and 3 deletions
  1. +14
    -3
      emacs.el

+ 14
- 3
emacs.el View File

@@ -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"


Loading…
Cancel
Save