diff options
| author | Luke Hoersten <[email protected]> | 2009-09-03 18:57:10 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2009-09-03 18:57:10 -0500 |
| commit | 45c806b41a78d2d592f5d4e3883a5b4f75d93544 (patch) | |
| tree | bf0800ddb86af923fe938517208f865b4a537968 | |
| parent | b9eab66f66fda54f561c8ce10179888af0b1670f (diff) | |
Tweaking whitespace handling
| -rw-r--r-- | emacs.el | 8 | ||||
| -rw-r--r-- | hoersten-c-style.el | 1 |
2 files changed, 7 insertions, 2 deletions
@@ -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 diff --git a/hoersten-c-style.el b/hoersten-c-style.el index bfa9b02..f14025f 100644 --- a/hoersten-c-style.el +++ b/hoersten-c-style.el @@ -38,6 +38,7 @@ (setq c-basic-offset 3) (setq indent-tabs-mode t) (setq standard-indent 3) + (setq whitespace-line-column 120) (c-toggle-auto-newline t) ; auto newline (c-subword-mode t) |
