-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdotemacs
38 lines (27 loc) · 1019 Bytes
/
dotemacs
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
;; start with a blank screen
(setq inhibit-startup-message t)
;; never use tabs. always use spaces.
(setq-default indent-tabs-mode nil)
;; 4 spaces on tab
(setq tab-width 4)
(setq default-tab-width 4)
(setq c-indent-level 4)
;; show debugger when an emacs error occurs (probably arising from a .emacs-related bug)
(setq debug-on-error t)
;;; remove trailing whitespace on save.
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; show line numbers
(require 'linum+)
(global-linum-mode 1)
;; at the bottom of the screen, show column number next to current line number
(setq column-number-mode t)
;; show regions selected with the keyboard (using ctrl-space).
(setq transient-mark-mode t)
(set-face-background 'region "#000000") ;; white selection area
;; enable syntax highlighting, with lots of colors
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
;; Backspace deletes the selected region
(delete-selection-mode t)
;; Type meta-g to go to a line.
(global-set-key "\M-g" 'goto-line)