-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
84 lines (79 loc) · 3.36 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(require 'cask "~/.cask/cask.el")
(cask-initialize)
(keyboard-translate ?\C-h ?\C-?)
(setq make-backup-files nil)
(setq auto-save-default nil)
(global-linum-mode 1)
(setq inhibit-startup-message t)
(electric-pair-mode 1)
(unless window-system
(require 'mouse)
(xterm-mouse-mode t)
(global-set-key [mouse-4] (lambda ()
(interactive)
(scroll-down 1)))
(global-set-key [mouse-5] (lambda ()
(interactive)
(scroll-up 1)))
(defun track-mouse (e))
(setq mouse-sel-mode t)
(add-to-list 'custom-theme-load-path "~/.emacs.d/.cask/24.5/elpa/color-theme-solarized-20160626.743/")
)
(global-set-key (kbd "S-C-b") 'shrink-window-horizontally)
(global-set-key (kbd "S-C-f") 'enlarge-window-horizontally)
(global-set-key (kbd "S-C-n") 'shrink-window)
(global-set-key (kbd "S-C-p") 'enlarge-window)
(set-default 'truncate-lines t)
(menu-bar-mode -1)
(tool-bar-mode -1)
(show-paren-mode 1)
(global-hl-line-mode t)
(fset 'yes-or-no-p 'y-or-n-p)
(set-frame-parameter nil 'background-mode 'dark)
(set-terminal-parameter nil 'background-mode 'dark)
(load-theme 'solarized t)
(add-to-list 'auto-mode-alist '("\\.jsx\\'" . js2-jsx-mode))
(add-to-list 'auto-mode-alist '("\\.babel\\'" . js2-jsx-mode))
(setq ruby-insert-encoding-magic-comment nil)
(when (and (>= emacs-major-version 24) (not (null window-system)))
(let* ((font-family "SF Mono")
(font-size 12)
(font-height (* font-size 9))
(jp-font-family "Hiragino Sans"))
(set-face-attribute 'default nil :family font-family :height font-height :weight 'semibold)
(let ((name (frame-parameter nil 'font))
(jp-font-spec (font-spec :family jp-font-family))
(jp-characters '(katakana-jisx0201
cp932-2-byte
japanese-jisx0212
japanese-jisx0213-2
japanese-jisx0213.2004-1))
(font-spec (font-spec :family font-family))
(characters '((?\u00A0 . ?\u00FF) ; Latin-1
(?\u0100 . ?\u017F) ; Latin Extended-A
(?\u0180 . ?\u024F) ; Latin Extended-B
(?\u0250 . ?\u02AF) ; IPA Extensions
(?\u0370 . ?\u03FF)))) ; Greek and Coptic
(dolist (jp-character jp-characters)
(set-fontset-font name jp-character jp-font-spec))
(dolist (character characters)
(set-fontset-font name character font-spec))
(add-to-list 'face-font-rescale-alist (cons jp-font-family 1.2)))))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (##))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(put 'dired-find-alternate-file 'disabled nil)