-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
66 lines (49 loc) · 1.55 KB
/
init.el
File metadata and controls
66 lines (49 loc) · 1.55 KB
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
;;; package --- Summary
;;; Commentary:
;;; This is my Emacs config
;;; Code:
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
;;; loads packages and activates them
(package-initialize)
;;; set command key to meta
(setq mac-option-modifier 'super)
(setq mac-command-modifier 'meta)
;;; wrap words properly
(global-visual-line-mode t)
;;; line numbers for everybody!
(setq linum-format " %d ")
(set-window-margins nil 2)
(global-linum-mode t)
;;; hide scroll bar and toolbar on GUI mode
(when (window-system)
(scroll-bar-mode -1)
(tool-bar-mode -1))
;;; hide welcome message
(setq inhibit-startup-message t)
;;; show matching parens
(show-paren-mode 1)
;;; set font/font size
(set-frame-font "Monaco For Powerline-12")
(setq-default line-spacing 5)
;;; ask y/n instead of yes/no
(fset 'yes-or-no-p 'y-or-n-p)
;;; selected text must be overridden when typed over
(delete-selection-mode t)
;;; backup
(setq backup-directory-alist `(("." . "~/.saves")))
(setq delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t)
;;; add colors to the shell
(setq ansi-color-names-vector
["black" "red" "green" "yellow" "PaleBlue" "magenta" "cyan" "white"])
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
;;; fix unicode in terminal
(add-hook 'term-exec-hook
(function
(lambda ()
(set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))))