summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el~
blob: 21e091f895c828e76ad974d1679784e95ef2f570 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
;;; package --- My .emacs.d init. 2017.12.12
;;; Commentary:
;; -*- coding: utf-8 -*-

;;; Code:

;; Base config
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(blink-cursor-mode -1)
;; Line number
(global-linum-mode 1)
;; Highlight current line
(when window-system
  (global-hl-line-mode))
;; Disable visual bell
(setq ring-bell-function 'ignore)
;; Transparent
;;(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
;;(add-to-list 'default-frame-alist '(alpha . (85 . 50)))

;; Personal information
(setq user-full-name "李向阳 141160029"
      user-mail-address "me@xiangyangli.com")

;; Package
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
(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.
 '(browse-url-firefox-arguments nil)
 '(browse-url-firefox-new-window-is-tab nil)
 '(browse-url-firefox-program "firefox-esr")
 '(custom-safe-themes
   (quote
	("4486ade2acbf630e78658cd6235a5c6801090c2694469a2a2b4b0e12227a64b9" "66881e95c0eda61d34aa7f08ebacf03319d37fe202d68ecf6a1dbfd49d664bc3" default)))
 '(inhibit-startup-screen t)
 '(package-selected-packages
   (quote
	(scala-mode helm expand-region window-numbering flycheck company oceanic-theme forest-blue-theme org ## evil))))
(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.
 )

(setq emacs-load-start-time (current-time))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))

;; Theme
;; (load-theme 'oceanic t)
;; Make highlight color differ from the highlight line
(set-face-attribute 'region nil :background "#213")

(let ((file-name-handler-alist nil))
  (require 'init-evil)
  (require 'init-org)
  (require 'init-program-basic)
  (require 'init-company)
  (require 'init-flycheck)
  (require 'init-expand-region)
  (require 'init-helm)
  (require 'init-window-numbering))

(provide 'init)
;;; init.el ends here