diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:33:00 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:33:00 +0800 |
| commit | 5f98cf9ac6e71ac84a7394a89748662d9c4f793d (patch) | |
| tree | d2044af1f9921c11c3a3e142062a5cb11d2e7a52 /.emacs.d/init.el~ | |
| parent | 6b910746e4b588c68a52caa8afaf73ccbf0586e0 (diff) | |
| download | dotfiles-5f98cf9ac6e71ac84a7394a89748662d9c4f793d.tar.xz dotfiles-5f98cf9ac6e71ac84a7394a89748662d9c4f793d.zip | |
add some basic
Diffstat (limited to '.emacs.d/init.el~')
| -rw-r--r-- | .emacs.d/init.el~ | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.emacs.d/init.el~ b/.emacs.d/init.el~ new file mode 100644 index 0000000..e6289a8 --- /dev/null +++ b/.emacs.d/init.el~ @@ -0,0 +1,55 @@ +;; Base config +(menu-bar-mode -1) +(tool-bar-mode -1) +(scroll-bar-mode -1) +(blink-cursor-mode -1) +;; Line number +(setq global-linum-mode t) +;; 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. + '(custom-safe-themes + (quote + ("4486ade2acbf630e78658cd6235a5c6801090c2694469a2a2b4b0e12227a64b9" "66881e95c0eda61d34aa7f08ebacf03319d37fe202d68ecf6a1dbfd49d664bc3" default))) + '(inhibit-startup-screen t) + '(package-selected-packages (quote (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) + +(let ((file-name-handler-alist nil)) + (require 'init-evil) + (require 'init-org)) + +;; C programming +(setq-default c-basic-offset 4 + tab-width 4 + indent-tabs-mode t) |
