# HG changeset patch # User Luke Hoersten # Date 1235777458 21600 # Node ID 59b1838be594a0a3dea5e26f309bf4b1f2b02d7a # Parent 0fda818a8b6aaa72a8a4298a2d1ce0cd086da9a5 Added electric braces and minor tweaks. diff -r 0fda818a8b6a -r 59b1838be594 emacs.el --- a/emacs.el Thu Feb 05 10:26:08 2009 -0600 +++ b/emacs.el Fri Feb 27 17:30:58 2009 -0600 @@ -15,6 +15,7 @@ (column-number-mode t) ; show column numbers (delete-selection-mode t) ; replace highlighted text (windmove-default-keybindings) ; move between windows with shift-arrow +(setq-default indent-tabs-mode nil) ; mouse hover variables (ido-mode t) ; file/buffer selector (setq-default ido-enable-flex-matching t) ; fuzzy matching is a must have @@ -23,7 +24,6 @@ ;; coding (which-func-mode t) ; show current function (show-paren-mode t) ; show matching paren -(setq-default show-paren-style 'mixed) (transient-mark-mode t) ; show highlighting (global-font-lock-mode t) ; syntax highlighting (global-whitespace-mode t) ; show whitespace @@ -83,6 +83,7 @@ (scroll-bar-mode nil) ; remove scroll bar (custom-set-faces '(default ((t (:background "#000000" :foreground "#ffffff" :height 101 :family "DejaVu Sans Mono"))))) (setq default-frame-alist '((width . 100) (height . 50) (menu-bar-lines . 1))) + (visual-line-mode t) ; word wrap break on whitespace ;; twilight theme (require 'color-theme) diff -r 0fda818a8b6a -r 59b1838be594 hoersten-c-style.el --- a/hoersten-c-style.el Thu Feb 05 10:26:08 2009 -0600 +++ b/hoersten-c-style.el Fri Feb 27 17:30:58 2009 -0600 @@ -52,6 +52,9 @@ (local-set-key (kbd "") 'hs-hide-all) (local-set-key (kbd "") 'hs-show-all) (hs-minor-mode t) ; enable hide-show mode + + ;; auto-close bracing + (dolist (key '("(" "[" "{")) (define-key (current-local-map) key 'insert-pair)) )) (provide 'hoersten-c-style) \ No newline at end of file