src.nth.io/

summaryrefslogtreecommitdiff
path: root/emacs.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2009-09-03 18:57:10 -0500
committerLuke Hoersten <[email protected]>2009-09-03 18:57:10 -0500
commit45c806b41a78d2d592f5d4e3883a5b4f75d93544 (patch)
treebf0800ddb86af923fe938517208f865b4a537968 /emacs.el
parentb9eab66f66fda54f561c8ce10179888af0b1670f (diff)
Tweaking whitespace handling
Diffstat (limited to 'emacs.el')
-rw-r--r--emacs.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/emacs.el b/emacs.el
index 8dd3dc9..39ffbaf 100644
--- a/emacs.el
+++ b/emacs.el
@@ -28,10 +28,13 @@
(global-font-lock-mode t) ; syntax highlighting
(global-whitespace-mode t) ; show whitespace
(global-linum-mode t)
-(setq-default whitespace-style '(tab-mark trailing tabs empty)) ; what whitespace elements to show
(add-hook 'before-save-hook 'whitespace-cleanup) ; cleanup whitespace on exit
(global-set-key (kbd "C-c c") 'compile) ; compile
(global-set-key (kbd "C-c r") 'recompile) ; recompile
+(setq-default whitespace-line-column 120) ; column width
+(setq-default whitespace-style
+ '(tabs tab-mark trailing lines-tail
+ space-before-tab indentation empty)) ; what whitespace elements to show
(require 'hoersten-pastebin-region) ; send selected text to pastebin
(require 'mercurial) ; load mercurial mode
@@ -81,7 +84,8 @@
;; x stuff
(if (not window-system)
- (menu-bar-mode nil) ; remove menu bar in no-x mode
+ nil
+ (menu-bar-mode nil) ; remove menu bar in no-x mode
(tool-bar-mode nil) ; remove tool bar
(scroll-bar-mode nil) ; remove scroll bar
(visual-line-mode t) ; word wrap break on whitespace