diff options
| author | Luke Hoersten <[email protected]> | 2009-08-08 11:26:04 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2009-08-08 11:26:04 -0500 |
| commit | e2d9354b3f0d4a89c1590d984aadbaee9f1a33d5 (patch) | |
| tree | 46b1c41f21c0479536eb523b48ebdfae943dca31 | |
| parent | e6d989fb8c4926ff12564c5e7565601c293320d4 (diff) | |
Added line numbers and line truncation to C++.
| -rw-r--r-- | emacs.el | 5 | ||||
| -rw-r--r-- | hoersten-c-style.el | 2 | ||||
| -rw-r--r-- | hoersten-pastebin-region.el | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -14,7 +14,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 +(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 @@ -33,6 +33,7 @@ (require 'hoersten-pastebin-region) ; send selected text to pastebin (require 'mercurial) ; load mercurial mode +(require 'nav) ; load nav bar (require 'hoersten-c-style) ; load c specific lisp (require 'pretty-mode) ; convert characters to unicode @@ -83,7 +84,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 + (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 bfa9b02..30321c0 100644 --- a/hoersten-c-style.el +++ b/hoersten-c-style.el @@ -41,6 +41,8 @@ (c-toggle-auto-newline t) ; auto newline (c-subword-mode t) + (linum-mode t) + (setq truncate-lines t) ;;(doxymacs-mode t) ;;(doxymacs-font-lock) diff --git a/hoersten-pastebin-region.el b/hoersten-pastebin-region.el index 4ac278f..ab7be13 100644 --- a/hoersten-pastebin-region.el +++ b/hoersten-pastebin-region.el @@ -15,7 +15,7 @@ (defun pastebin-region (start end) "Send selected text to dpaste pastebin." (interactive "r") - (let* ((pastebin-url "http://build-ch-03/paste/") + (let* ((pastebin-url "http://inf/paste/") (url-request-method "POST") (url-request-extra-headers '(("Content-Type" . "application/x-www-form-urlencoded"))) (url-request-data |
