dotfiles/.emacs

63 lines
2.1 KiB
Plaintext

(add-to-list 'load-path "~/.emacs.d/lisp/")
(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
; do not break hard linked files
(setq backup-by-copying-when-linked t)
; use aspell instead of ispell
(setq-default ispell-program-name "aspell")
; enable auto compression mode
(auto-compression-mode 1)
; make scripts executable upon saving
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
;; Make all yes/no prompts into y/n prompts
(fset 'yes-or-no-p 'y-or-n-p)
;; set time to show in corner
(setq display-time-day-and-date t)
(display-time)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t)
'(safe-local-variable-values
(quote
((sgml-local-ecat-files)
(sgml-local-catalogs)
(sgml-exposed-tags)
(sgml-default-dtd-file)
(sgml-parent-document)
(sgml-indent-data . t)
(sgml-indent-step . 2)
(sgml-always-quote-attributes . t)
(sgml-minimize-attributes)
(sgml-shorttag . t)
(sgml-omittag . t))))
'(send-mail-function (quote mailclient-send-it)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(require 'lua-mode)
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))