diff options
Diffstat (limited to 'dotfiles/emacs')
-rw-r--r-- | dotfiles/emacs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dotfiles/emacs b/dotfiles/emacs new file mode 100644 index 0000000..9c225a5 --- /dev/null +++ b/dotfiles/emacs @@ -0,0 +1,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) |