-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
63 lines (45 loc) · 1.69 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
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
;; Marmalade package archive
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
;;(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(load-theme 'solarized-dark t)
;; Or alternate color palette
;; (load-theme 'solarized-light t)
;;(load-theme 'zenburn t)
(setq font-lock-maximum-decoration t)
(add-to-list 'auto-mode-alist '("\\.vuh" . tcl-mode))
(add-to-list 'auto-mode-alist '("\\.adp" . html-mode))
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
;; no menu bar, please - it's useelss
(menu-bar-mode nil)
;; mouse wheel scrolling
(mouse-wheel-mode t)
;; create backup files in their own directory instead of leaving them all over the place
;; Enable backup files:
(setq make-backup-files t)
;; Enable backup versioning with default values
(setq version-control t)
;; Save all backup files in this directory
(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))
;; Highlight current line
(global-hl-line-mode +1)
;; Below from http://www-cdf.fnal.gov/~sthrlnd/emacs_help.html
;; get rid of the toolbar on top of the window
(tool-bar-mode 0)
;; Show column number at bottom of screen
(column-number-mode 1)
;; turn on paren matching
(show-paren-mode t)
(setq show-paren-style 'mixed)
;; Use "y or n" answers instead of full words "yes or no"
(fset 'yes-or-no-p 'y-or-n-p)
;; Dont show the GNU splash screen
(setq inhibit-startup-message t)
;; Possibly fixing un/redo: http://www.emacswiki.org/RedoMode
; make file name and computer title
(set-default 'frame-title-format
(list "" "emacs" "@" (getenv "HOST") " : %f" ))
(add-hook 'before-save-hook 'delete-trailing-whitespace)