-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
39 lines (31 loc) · 1.11 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; init.el --- Summary: 配置文件
;;; Commentary: 初始化,调用myinit.org
;;; code:
(require 'package)
(setq package-enable-at-startup nil)
(unless package--initialized
(package-initialize t))
;; 设置melpa中国源
(setq package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/")
("melpa" . "http://elpa.emacs-china.org/melpa/")
("org" . "http://elpa.emacs-china.org/org/")))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(package-initialize)
(use-package try
:ensure t)
;; 缩写模式
(abbrev-mode t)
(define-abbrev-table 'global-abbrev-table '(
("zrl" "zhuruliang")
))
;; set backuo files to one dictionary
;; (setq backup-directory-alist
;; `(("." . , (concat user-emacs-directory "backups"))))
;; disable backup
(setq backup-inhibited t)
(setq auto-save-default nil)
(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org"))
(setq custom-file (expand-file-name "lisp/init-custom.el" user-emacs-directory)) ;; 把custom group file放到另外一个文件
(load-file custom-file)