Permalink
Browse files

More emacs customization

  • Loading branch information...
1 parent baf0e9d commit 1786f0838ce94fd10f8ade73e2ff7e25fea05835 @garybernhardt committed Dec 19, 2008
Showing with 15,198 additions and 2 deletions.
  1. +21 −2 .emacs
  2. +15,177 −0 .emacs-lisp/color-theme.el
View
23 .emacs
@@ -39,6 +39,7 @@
; GRB: no tabs
(setq-default indent-tabs-mode nil)
(setq-default c-basic-offset 4)
+(setq-default default-tab-width 4)
; GRB: confirm exit
(setq confirm-kill-emacs #'yes-or-no-p)
@@ -189,7 +190,8 @@
"^\\*tumme-display-image\\*$"
"^\\*SLIME Description\\*$"
"^\\*.* output\\*$" ; tex compilation buffer
- "^\\*TeX Help\\*$"))
+ "^\\*TeX Help\\*$"
+ "^\\*Shell Command Output\\*$"))
(setq grb-temporary-window (nth 2 (window-list)))
(defun grb-special-display (buffer &optional data)
(let ((window grb-temporary-window))
@@ -205,5 +207,22 @@
(setq inhibit-startup-message t)
; GRB: always fill at 78 characters
-(add-hook 'text-mode-hook 'turn-on-auto-fill)
+(add-hook 'text-mode-hook
+ (lambda ()
+ (turn-on-auto-fill)
+ (set-fill-column 78)))
+;(add-hook 'text-mode-hook 'turn-on-auto-fill)
+
+(require 'color-theme)
+;(color-theme-pok-wog)
+(color-theme-robin-hood)
+
+; map gw to fill region like it does in vim
+(define-key viper-vi-global-user-map "gw" 'fill-region)
+
+(setq-default auto-fill-function
+ (lambda ()
+ (do-auto-fill)
+ (set-window-hscroll
+ (selected-window) 0)))
Oops, something went wrong.

0 comments on commit 1786f08

Please sign in to comment.