summaryrefslogtreecommitdiffstats
path: root/dotfiles
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-07-08 13:22:28 -0400
committerColin Walters <walters@verbum.org>2010-07-08 13:22:28 -0400
commit82308f926cb9ce30d958fe04878004fdd6d47849 (patch)
tree487dfb8eb0a26408f9b02aeb5d43ed931513dcd5 /dotfiles
downloadhomegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.gz
homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.xz
homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.zip
Initial commit
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/bashrc28
-rw-r--r--dotfiles/emacs43
2 files changed, 71 insertions, 0 deletions
diff --git a/dotfiles/bashrc b/dotfiles/bashrc
new file mode 100644
index 0000000..7abf9bd
--- /dev/null
+++ b/dotfiles/bashrc
@@ -0,0 +1,28 @@
+# .bashrc
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+ . /etc/bashrc
+fi
+
+# User specific aliases and functions
+
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
+
+shopt -s histappend
+
+EDITOR="emacsclient"
+export EDITOR
+
+_format_inroot_dir ()
+{
+ if test -n "$INROOT_DIR"; then
+ echo " [root=$INROOT_DIR]"
+ fi
+}
+
+PS1='\W$(_format_inroot_dir)$(__git_ps1 " [git %s]") \$ '
+export PS1
+
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)