;; ~/.emacs - Luke Hoersten - v0.4 ;; general (menu-bar-mode nil) ;; remove menu bar ;;(tool-bar-mode nil) ;; remove tool bar ;; depricated (display-time-mode t) ;; show clock (setq x-select-enable-clipboard t) ;; paste from X buffer (column-number-mode t) ;; show column numbers (delete-selection-mode t) ;; replace highlighted text when typing (transient-mark-mode t) ;; show highlighting (setq inhibit-splash-screen t) ;; disable splash screen ;; indentation (setq-default tab-width 2) ;; set indent size to 4 (setq-default indent-tabs-mode nil) ;; use spaces as tabs ;; coding (show-paren-mode t) ;; show matching paren (global-font-lock-mode t) ;; syntax highlighting ;;(add-hook 'c-mode-hook 'c-toggle-auto-state t) ;; auto add newlines while coding c-style ;; custom key bindings (global-set-key "\C-cl" 'goto-line) (global-set-key "\C-cs" 'shell) (global-set-key "\C-cg" 'gdb) ;; shell (ansi-color-for-comint-mode-on) ;; color in shell buffer (setq-default comint-scroll-to-bottom-on-input t) ;; only type on prompt (setq-default comint-scroll-show-maximum-output t) ;; place text at bottom of buffer ;; latex (add-hook 'latex-mode-hook 'auto-fill-mode t) ;; wordwrap (add-hook 'latex-mode-hook 'flyspell-mode t) ;; spellcheck ;; mercurial (load "mercurial.el") ;; load mercurial mode ;; map file extensions to modes (setq auto-mode-alist (append '( ("\\.h$" . c++-mode) ("\\.jj$" . java-mode) ("\\.py$" . python-mode) ) auto-mode-alist)) ;; iswitchb (require 'iswitchb) (iswitchb-mode 1) (add-to-list 'iswitchb-buffer-ignore "^ ") (add-to-list 'iswitchb-buffer-ignore "*Messages*") (add-to-list 'iswitchb-buffer-ignore "*scratch*") (add-to-list 'iswitchb-buffer-ignore "*Buffer") (add-to-list 'iswitchb-buffer-ignore "*Completions")