settings

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

.emacs (1453B)


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
; Young .emacs for the powerful

(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.
 '(inhibit-startup-screen t)
 '(make-backup-files nil)
 '(menu-bar-mode nil)
 '(scroll-bar-mode nil)
 '(tool-bar-mode nil)
 '(tooltip-mode nil))

(add-to-list 'load-path "~/.emacs.d/")

;; Multiple Cursor
(add-to-list 'load-path "~/.emacs.d/multiple-cursors")
(require 'multiple-cursors)
(global-set-key (kbd "C-c d") 'mc/edit-lines)
(global-set-key (kbd "C-c x") 'mc/mark-all-like-this)
(global-set-key (kbd "M-n") 'mc/mark-next-like-this)
(global-set-key (kbd "M-p") 'mc/mark-previous-like-this)

(add-to-list 'load-path "go-mode-load.el" t)
(require 'go-mode-load)

(require 'autopair)
(autopair-global-mode)

;; keybind yo
(global-unset-key "\C-@")
(global-unset-key "\M-@")
(global-set-key (kbd "M-]") 'shrink-window-horizontally)
(global-set-key (kbd "M-[") 'enlarge-window-horizontally)
(global-set-key (kbd "C-SPC") 'forward-word)
(global-set-key (kbd "M-SPC") 'backward-word)
(global-set-key (kbd "C-q") 'set-mark-command)

;; make whitespace-mode use just basic coloring

(setq whitespace-style (quote (spaces tabs space-mark tab-mark)))
(global-set-key (kbd "C-c w") 'whitespace-mode)

(setq-default c-basic-offset 8
	      tab-width 8
	      indent-tabs-mode t)