From af7eb19c9dd7259963f3ea3159778a8ff16b0823 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Fri, 27 Feb 2009 17:30:58 -0600 Subject: Added electric braces and minor tweaks. --- emacs.el | 3 ++- hoersten-c-style.el | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 22af730..1b2a2bd 100644 --- a/emacs.el +++ b/emacs.el @@ -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 --git a/hoersten-c-style.el b/hoersten-c-style.el index feed4ac..c89168a 100644 --- a/hoersten-c-style.el +++ b/hoersten-c-style.el @@ -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 -- cgit v1.2.3