diff options
| author | Steve Lee <me@xiangyangli.com> | 2018-04-27 20:20:53 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2018-04-27 20:20:53 +0800 |
| commit | f0f8a8dea249d36eb42aaeda714456829f059f46 (patch) | |
| tree | 9a91f50adf8c0455b6afdc4f86d8e72059e9ae04 /.emacs.d/init.el | |
| parent | 3afd2aae61ee38c1f29859620657be5980cfc148 (diff) | |
| download | dotfiles-f0f8a8dea249d36eb42aaeda714456829f059f46.tar.xz dotfiles-f0f8a8dea249d36eb42aaeda714456829f059f46.zip | |
update emacs.d
Diffstat (limited to '.emacs.d/init.el')
| -rw-r--r-- | .emacs.d/init.el | 61 |
1 files changed, 29 insertions, 32 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c846e4e..c63707d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -5,10 +5,24 @@ ;;; Code: ;; Base config + +;; 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. +;; (package-initialize) + +(setq debug-on-error t) + +;; Path +(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) + (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 @@ -24,41 +38,13 @@ (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. - ) +;; Bootstrap +(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -(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") +;; (setq emacs-load-start-time (current-time)) (let ((file-name-handler-alist nil)) + (require 'init-elpa) (require 'init-evil) (require 'init-org) (require 'init-program-basic) @@ -68,5 +54,16 @@ (require 'init-helm) (require 'init-window-numbering)) +;; Theme +(load-theme 'misterioso t) +;; Make highlight color differ from the highlight line +(set-face-attribute 'region nil :background "#213") + +;;---------------------------------------------------------------------------- +;; Variables configured via the interactive 'customize' interface +;;---------------------------------------------------------------------------- +(when (file-exists-p custom-file) + (load custom-file)) + (provide 'init) ;;; init.el ends here |
