Skip to content

Instantly share code, notes, and snippets.

@ykomatsu
Created June 29, 2015 12:15
Show Gist options
  • Save ykomatsu/3b5b3acc7d34862c48cb to your computer and use it in GitHub Desktop.
Save ykomatsu/3b5b3acc7d34862c48cb to your computer and use it in GitHub Desktop.
init.el
;;; Enable El-Get
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el")
(goto-char (point-max))
(eval-print-last-sexp)))
(el-get 'sync)
;;; Enable Recentf mode
(recentf-mode 1)
;;; Enable ElDoc
(add-hook 'emacs-lisp-mode-hook #'eldoc-mode)
(add-hook 'lisp-interaction-mode-hook #'eldoc-mode)
(add-hook 'ielm-mode-hook #'eldoc-mode)
;;; Enable Show Paren mode
(show-paren-mode 1)
;;; Add a newline automatically at the EOF
(setq-default require-final-newline t)
;;; Remove trailing white spaces
(add-hook 'before-save-hook #'delete-trailing-whitespace)
;;; Use spaces to indentation
(setq-default indent-tabs-mode nil)
;;; Disable Menu Bar mode
(menu-bar-mode -1)
;;; Shell-Script mode
(setq sh-basic-offset 2)
(setq sh-indentation 2)
;;; Column Number mode
(column-number-mode 1)
;;; Base16
(el-get-bundle base16)
(load-theme 'base16-default-dark t)
;;; popwin
(el-get-bundle popwin
:features popwin)
(popwin-mode 1)
;;; Auto-Complete
(el-get-bundle auto-complete)
(ac-config-default)
;;; Flycheck
(el-get-bundle elpa:flycheck)
(add-hook 'after-init-hook #'global-flycheck-mode)
;;; Smartparens
(el-get-bundle smartparens)
(smartparens-global-mode 1)
;;; Helm
(el-get-bundle helm)
(global-set-key (kbd "M-x") #'helm-M-x)
(global-set-key (kbd "C-x C-b") #'helm-buffers-list)
(global-set-key (kbd "C-x C-r") #'helm-recentf)
(global-set-key (kbd "M-y") #'helm-show-kill-ring)
;;; rust-mode
(el-get-bundle rust-mode)
;;; helm-ag
(el-get-bundle helm-ag)
;;; toml-mode
(el-get-bundle toml-mode)
;;; Mozc
(require 'mozc)
(setq default-input-method "japanese-mozc")
;;; server
(server-start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment