summaryrefslogtreecommitdiffstats
path: root/dotfiles/emacs
blob: 9c225a57ec0e857473b1aade0ce20f6ffe3e8add (plain)
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
;;; Minimal Unbreak Emacs
; Waste of display space if you can't click on it
(menu-bar-mode nil)
; This is off for efficiency reasons I guess.  But really
; Emacs should have some heuristics for it instead of being
; dumb by default.
(column-number-mode t)
; Really.
(iswitchb-mode t)
; Assuming you didn't use Emacs from before when the concept of
; selecting a single region of text interactively was not supported.
(transient-mark-mode t)
; This one is actually fixed in Emacs 22; http://www.emacswiki.org/cgi-bin/wiki/CopyAndPaste
(setq x-select-enable-clipboard t)
; The default for "uniquifying" buffer names sucks
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
; Slightly more debatable
(global-set-key (kbd "C-x C-b") 'ibuffer)
(set-scroll-bar-mode 'right)
; Custom keybindings
(global-set-key (kbd "C-c i") 'imenu)
;;; End Minimal Unbreak Emacs

(global-set-key (kbd "C-z") 'undo)
(tool-bar-mode nil)
(server-start)
(setq viper-mode t)
(require 'viper)

(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.
 '(safe-local-variable-values (quote ((js2-basic-offset . 4)))))
(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.
 )
(put 'narrow-to-region 'disabled nil)