-
Notifications
You must be signed in to change notification settings - Fork 3
/
defaults.el
41 lines (30 loc) · 1.06 KB
/
defaults.el
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
;; saner buffer names
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
;; remove trailing whitespaces
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; no more beeps
(setq visible-bell t)
;; save backups and autosaves in a better place
(setq backup-directory-alist `(("." . ,(concat user-emacs-directory "backups"))))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
;; pasting over something kills it
(delete-selection-mode 1)
;; textmate behavior for enter key
(global-set-key (kbd "<s-return>") 'textmate-next-line)
;; magit-status
;;(global-set-key (kbd "C-x g") 'magit-status)
(when window-system
(setq frame-title-format '(buffer-file-name "%f" ("%b")))
(tooltip-mode -1)
(mouse-wheel-mode t))
;; we're too lazy to type in yes
(defalias 'yes-or-no-p 'y-or-n-p)
;; initialize it you never know when it might come in handy
(random t)
;; no tabs please!
(setq-default indent-tabs-mode nil)
;; this thing enables case region commands
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)