Skip to content

Instantly share code, notes, and snippets.

@xuchunyang
Last active August 29, 2015 14:14
Show Gist options
  • Save xuchunyang/d988d8fefeec76075701 to your computer and use it in GitHub Desktop.
Save xuchunyang/d988d8fefeec76075701 to your computer and use it in GitHub Desktop.
;;; init.el -- minimum init file for debug Emacs
;;; Commentary:
;;; Code:
(setq message-log-max 10000
debug-on-error t)
;; Remap keys
(when (eq system-type 'darwin)
(setq ns-pop-up-frames nil ; Don't pop up new frames from the workspace
mac-command-modifier 'meta
mac-option-modifier 'control))
;;; Font
(when (member "Source Code Pro" (font-family-list))
(set-face-attribute 'default nil :font "Source Code Pro 13"))
;;; package.el
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
;;; ido
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t)
(require 'saveplace)
(setq-default save-place t)
(global-set-key (kbd "M-/") 'hippie-expand)
(global-set-key (kbd "C-x C-b") 'ibuffer)
(show-paren-mode 1)
(tool-bar-mode -1)
(setq-default indent-tabs-mode nil)
(setq x-select-enable-clipboard t
x-select-enable-primary t
save-interprogram-paste-before-kill t
apropos-do-all t
mouse-yank-at-point t
require-final-newline t
visible-bell nil
load-prefer-newer t
ediff-window-setup-function 'ediff-setup-windows-plain
save-place-file (concat user-emacs-directory "places")
backup-directory-alist `(("." . ,(concat user-emacs-directory
"backups"))))
;;; init.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment