Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
;; init.el
;; show line number
(require 'linum)
;; 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)
(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)
(require 'package)
(add-to-list 'package-archives '("melpa" . ""))
(add-to-list 'package-archives '("marmalade" . ""))
(add-to-list 'package-archives '("gnu" . ""))
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.