Skip to content

Instantly share code, notes, and snippets.

@arusu0629 arusu0629/init.el
Last active Jan 8, 2018

Embed
What would you like to do?
~/.emacs.d/init.el
;; init.el
;; show line number
(require 'linum)
(global-linum-mode)
;; show and hide line number with F9
(global-set-key [f9] 'linum-mode)
;; Language
(set-language-environment "Japanese")
;; coring system
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
;; main cursor is added underline
(setq hl-line-face 'underline)
(global-hl-line-mode)
(setq linum-format "%3d ")
;; don't make backup file
(setq make-backup-files nil)
(setq auto-save-default nil)
;; correspond "()" set to highlight
(show-paren-mode t)
;; auto indent
(setq c-auto-indent t)
;; C-x i -> indent
(global-set-key (kbd "C-x i") 'indent-region)
;; auto put in "()"
(electric-pair-mode t)
(global-font-lock-mode t)
;; set C-h to backspace
(global-set-key (kbd "\C-h") 'delete-backward-char)
;;packages
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/#/"))
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.