Skip to content

Instantly share code, notes, and snippets.

@shunsugai
Created June 3, 2014 15:22
Show Gist options
  • Save shunsugai/05d1bee02eae2e2f4e0f to your computer and use it in GitHub Desktop.
Save shunsugai/05d1bee02eae2e2f4e0f to your computer and use it in GitHub Desktop.
emacs settings
;;
;; init.el
;;
;; -*- mode: emacs-lisp; coding: utf-8; indent-tabs-mode: nil -*-
;; Language
(set-language-environment 'Japanese)
;; Set alt as Meta key
(setq ns-alternate-modifier (quote meta))
(show-paren-mode t)
(setq show-paren-delay 0)
(line-number-mode 1)
(column-number-mode 1)
(global-linum-mode t)
(set-face-attribute 'default nil
:family "Menlo"
:height 150)
(set-fontset-font
nil 'japanese-jisx0208
;;(font-spec :family "Hiragino Mincho Pro"))
(font-spec :family "Hiragino Kaku Gothic ProN"))
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
;; auto-complete
(require 'auto-complete)
(require 'auto-complete-config)
(global-auto-complete-mode t)
(define-key ac-completing-map (kbd "M-n") 'ac-next)
(define-key ac-completing-map (kbd "M-p") 'ac-previous)
(setq ac-auto-start nil)
(ac-set-trigger-key "TAB")
(load-theme 'monokai t)
(blink-cursor-mode 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment