diff options
| author | Luke Hoersten <[email protected]> | 2009-02-27 17:30:58 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2009-02-27 17:30:58 -0600 |
| commit | af7eb19c9dd7259963f3ea3159778a8ff16b0823 (patch) | |
| tree | 1f550af1f2c97836d45dab7ce6c749dc5370080d | |
| parent | f9311a173ce168019a07ed6420c812a83e2ae669 (diff) | |
Added electric braces and minor tweaks.
| -rw-r--r-- | emacs.el | 3 | ||||
| -rw-r--r-- | hoersten-c-style.el | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -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 "<f1>") 'hs-hide-all) (local-set-key (kbd "<f2>") '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 |
