forked from justone/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
37 lines (36 loc) · 1.58 KB
/
.emacs
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
(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.
'(column-number-mode t)
'(fill-column 72)
'(menu-bar-mode t)
'(save-place t nil (saveplace))
'(size-indication-mode t)
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
'(transient-mark-mode t))
(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.
)
;; Remove splash screen
(setq inhibit-splash-screen t)
;; Don't make backup files
(setq make-backup-files nil)
;; no "#" files after a save
(setq delete-auto-save-files t)
;; From Jonathan Rockway
;; https://github.com/jrockway/dotfiles/blob/master/emacs
(defun xml-unescape ()
(interactive)
(ignore-errors (replace-string "\\x0a" "\n" nil (point-min) (point-max)))
(ignore-errors (replace-string "\\\"" "\"" nil (point-min) (point-max)))
(ignore-errors (replace-string "
" "\n" nil (point-min) (point-max)))
(ignore-errors (replace-string "<" "<" nil (point-min) (point-max)))
(ignore-errors (replace-string ">" ">" nil (point-min) (point-max)))
(ignore-errors (replace-string """ "\"" nil (point-min) (point-max)))
(ignore-errors (replace-string "'" "'" nil (point-min) (point-max)))
(ignore-errors (replace-string "&" "&" nil (point-min) (point-max))))