-
Notifications
You must be signed in to change notification settings - Fork 2
/
my-config.el
58 lines (41 loc) · 1.61 KB
/
my-config.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
;; my specific flag settings
(setq bookmark-save-flag 1)
;;; general set up
(transient-mark-mode t) ; higlight to mark
(tool-bar-mode nil) ; Hate, hate, hate this toolbar. remove it
(server-start) ; start the server for emacsclient
(require 'edit-server) ; for edit in emacs Chrome extension
(edit-server-start)
(setq display-time-24hr-format t) ;24h time
(display-time)
(setq visible-bell nil) ;; broken in 24? ;no more beeps, just screen flash
;;; abbrev mode
(setq abbrev-file-name "~/.abbrev_defs")
(setq dabbrev-case-replace nil) ; Preserve case when expanding
(setq abbrev-mode t)
;; (setq lpr-switches '("-PLaser"))
(setq lpr-switches '("-Php_LaserJet_1320_series__89ACCF_"))
(global-set-key "\M-p" 'lpr-buffer)
;; Real men end follow periods with one space only.
(setq sentence-end "[.?!][]\"')}]*\\($\\|[ \t]\\)[ \t\n]*")
(setq sentence-end-double-space nil)
(require 'smooth-scrolling)
(setq smooth-scroll-margin 5)
;; remap kill region
(global-set-key "\C-w" 'backward-kill-word)
(global-set-key "\C-x\C-k" 'kill-region)
;; make undo easier to do
(global-set-key (kbd "C-z") 'undo)
;;; keep up with Dropbox syncs from other machines
(global-auto-revert-mode 1)
(require 'mouse-copy)
(global-set-key [C-down-mouse-1] 'mouse-drag-secondary-pasting)
(global-set-key [C-S-down-mouse-1] 'mouse-drag-secondary-moving)
;;; backups
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist '(("." . "~/.saves")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t)