Bläddra i källkod

add prefs about major-mode detection

pull/1/head
10sr 12 år sedan
förälder
incheckning
3f31007990
1 ändrade filer med 14 tillägg och 3 borttagningar
  1. +14
    -3
      emacs.el

+ 14
- 3
emacs.el Visa fil

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


Laddar…
Avbryt
Spara