equal
deleted
inserted
replaced
29 ;; whitespace |
29 ;; whitespace |
30 (global-whitespace-mode t) ; show whitespace |
30 (global-whitespace-mode t) ; show whitespace |
31 (add-hook 'before-save-hook 'whitespace-cleanup) ; cleanup whitespace on exit |
31 (add-hook 'before-save-hook 'whitespace-cleanup) ; cleanup whitespace on exit |
32 (setq-default |
32 (setq-default |
33 whitespace-line-column 120 ; column width |
33 whitespace-line-column 120 ; column width |
34 whitespace-style '(trailing lines-tail empty |
34 whitespace-style ; whitespace to highlight |
35 indentation space-before-tab |
35 '(trailing lines-tail empty indentation |
36 space-after-tab)) |
36 space-before-tab space-after-tab)) |
37 |
37 |
38 ;; coding |
38 ;; coding |
39 (which-func-mode t) ; show current function |
39 (which-func-mode t) ; show current function |
40 (show-paren-mode t) ; show matching paren |
40 (show-paren-mode t) ; show matching paren |
41 (transient-mark-mode t) ; show highlighting |
41 (transient-mark-mode t) ; show highlighting |
45 (global-set-key (kbd "C-c r") 'recompile) ; recompile |
45 (global-set-key (kbd "C-c r") 'recompile) ; recompile |
46 (global-set-key (kbd "C-c C-c") ; comment |
46 (global-set-key (kbd "C-c C-c") ; comment |
47 'comment-or-uncomment-region) |
47 'comment-or-uncomment-region) |
48 |
48 |
49 ;; line numbers |
49 ;; line numbers |
50 ;;(global-linum-mode t) |
|
51 (mapc |
50 (mapc |
52 (lambda (x) |
51 (lambda (x) |
53 (add-hook x 'linum-mode)) |
52 (add-hook x 'linum-mode)) |
54 '(text-mode-hook |
53 '(text-mode-hook |
55 c-mode-common-hook |
54 c-mode-common-hook |
102 ;; Xrefactory |
101 ;; Xrefactory |
103 ;; (setq load-path (cons "~/xref/emacs" load-path)) |
102 ;; (setq load-path (cons "~/xref/emacs" load-path)) |
104 ;; (setq exec-path (cons "~/xref" exec-path)) |
103 ;; (setq exec-path (cons "~/xref" exec-path)) |
105 ;; (load "xrefactory") |
104 ;; (load "xrefactory") |
106 |
105 |
107 ;; iedit mode |
|
108 (require 'iedit) ; interactive edit mode |
|
109 (define-key global-map (kbd "C-;") 'iedit-mode) |
|
110 |
|
111 ;; nav mode |
106 ;; nav mode |
112 (add-to-list 'load-path "~/.emacs.d/nav/") |
107 (add-to-list 'load-path "~/.emacs.d/nav/") |
113 (require 'nav) |
108 (require 'nav) |
114 |
109 |
115 ;; unicode |
110 ;; unicode |