dotfiles/.emacs.d/lisp/modes.el

35 lines
1.4 KiB
EmacsLisp
Raw Normal View History

2013-03-23 15:41:47 +01:00
;; Python
(autoload 'python-mode "python-mode.el" "Python mode." t)
(setq auto-mode-alist (append '(("/*.\.python$" . python-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist))
2015-05-16 17:01:48 +02:00
;; RUST
(autoload 'rust-mode "rust-mode" "Rust editing mode." t)
(setq auto-mode-alist (cons '("\.rs$" . rust-mode) auto-mode-alist))
2015-05-29 12:18:18 +02:00
;; Toml
(setq auto-mode-alist (cons '("\.toml$" . conf-mode) auto-mode-alist))
2013-03-23 15:41:47 +01:00
;; LUA
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))
;; PHP
(autoload 'php-mode "php-mode.el" "Php mode." t)
(setq auto-mode-alist (append '(("/*.\.php[0-9]?$" . php-mode)) auto-mode-alist))
;; MarkDown
(autoload 'markdown-mode "markdown-mode.el" "Markdown mode." t)
(setq auto-mode-alist (cons '("\.markdown$" . markdown-mode) auto-mode-alist))
2013-03-23 17:28:08 +01:00
(setq auto-mode-alist (cons '("\.mdwn$" . markdown-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\.mdt$" . markdown-mode) auto-mode-alist))
2013-03-23 15:41:47 +01:00
(setq auto-mode-alist (cons '("\.md$" . markdown-mode) auto-mode-alist))
;; JSON
(setq auto-mode-alist (cons '("\.json$" . js-mode) auto-mode-alist))
2013-06-14 00:14:03 +02:00
(setq auto-mode-alist (cons '("\.geojson$" . js-mode) auto-mode-alist))
;; HTML
(setq auto-mode-alist (cons '("\.template$" . html-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\.tpl$" . html-mode) auto-mode-alist))