-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs
31 lines (23 loc) · 797 Bytes
/
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
;; .emacs
;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)
;; turn on font-lock mode
(global-font-lock-mode t)
;; enable visual feedback on selections
(setq transient-mark-mode t)
;; M-right/left arrow goes towards braces for programming
(global-set-key [(meta left)] 'backward-sexp)
(global-set-key [(meta right)] 'forward-sexp)
;; M-g goes to a line number
(global-set-key [(meta g)] 'goto-line)
;; load theme
(add-to-list 'load-path "~/bin/emacs/")
(require 'color-theme)
(color-theme-deep-blue)
;; nice middle-click copy and pasting
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
;; default size for window is 84x50
(setq default-frame-alist '(
(width . 84) (height . 50)
))