Last active
November 24, 2018 22:51
-
-
Save oxUnd/8f7a0d89fe8c5d18af9c10984cfdb28c to your computer and use it in GitHub Desktop.
my .emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; .emacs | |
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
;; 开启 melpa | |
(require 'package) | |
(setq package-archives '(("gnu" . "http://mirrors.163.com/elpa/gnu/") | |
("org" . "http://mirrors.163.com/elpa/org/") | |
("melpa" . "http://mirrors.163.com/elpa/melpa/"))) | |
(package-initialize) | |
;; 关闭 Welcome | |
(setq inhibit-splash-screen t) | |
(setq inhibit-startup-message t) | |
;; notab | |
(setq indent-tabs-mode nil) | |
(custom-set-variables | |
'(indent-tabs-mode nil)) | |
;; theme custom setting | |
;; 隐藏工具栏 | |
(tool-bar-mode -1) | |
;; 设置 material 主题 | |
;(add-to-list | |
; 'custom-theme-load-path "~/.emacs.d/github/emacs-material-theme") | |
;(load-theme 'material t) | |
;; 设置默认字体 | |
;(set-frame-font "Source Code Pro 14" nil t) | |
;; Javascript Mode | |
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) | |
;; Auto-Complete | |
(ac-config-default) | |
;;; JavaScript | |
(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. | |
'(package-selected-packages (quote (ac-js2 auto-complete)))) | |
(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. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Windows
.emacs
path,M+:
, enter(getenv "HOME")
mklink C:\Users\<YOURNAME>\AppData\Roaming\.emacs C:\_emacs