Skip to content

Instantly share code, notes, and snippets.

@falcondai
Last active December 21, 2015 00:18
Show Gist options
  • Save falcondai/6218765 to your computer and use it in GitHub Desktop.
Save falcondai/6218765 to your computer and use it in GitHub Desktop.
custom init setup for Emacs 24
(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.
'(custom-enabled-themes (quote (deeper-blue)))
(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.
)
;; customization at boot
;; auto-complete
(add-to-list 'load-path "~/.emacs.d/auto-complete-1.3.1")
(require 'auto-complete)
(global-auto-complete-mode t)
(show-paren-mode)
(cua-mode)
(setq-default cursor-type 'bar)
(set-cursor-color "#ffffff")
;; mixed HTML mode
(add-to-list 'load-path "~/.emacs.d/multi-web-mode")
(require 'multi-web-mode)
(setq mweb-default-major-mode 'html-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
(js-mode "<script[^>]*>" "</script>")
(css-mode "<style[^>]*>" "</style>")))
(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
(multi-web-global-mode 1)
;; jade mode
(require 'sws-mode)
(require 'jade-mode)
;; modern indentation
(electric-indent-mode t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment