Bootstrap

React JSX,应如何配置Emacs

最近在使用JSX编程,发现之前的Emacs设置,不能使 js中的 jsx 语法高亮,所以添加了JSX识别设置,代码的各部分均有详细注释,可根据需要将其添加到您的.emacs

(when (>= emacs-major-version 24)
  (require 'package)
  (add-to-list
   'package-archives
   '("melpa" . "http://melpa.org/packages/")
   t)
  (package-initialize))

;;;
(add-to-list 'load-path "~/.emacs.d/lisp")

(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
;;;(set-buffer-process-coding-system 'utf-8)

;; 80列
(setq default-fill-column 80)
;; 显示列号
(setq column-number-mode t)

;;(ns-toggle-fullscreen)
(display-time)

;;; set default font , 16 is size
(set-default-font  "-*-Menlo-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")

(require 'whites
;