More random cleanups.
--- a/hoersten-c-style.el Sun Dec 13 11:45:37 2009 -0600
+++ b/hoersten-c-style.el Sun Aug 08 18:28:26 2010 -0500
@@ -45,27 +45,26 @@
(c-toggle-auto-newline t) ; auto newline
(c-subword-mode t)
- ;;(doxymacs-mode t)
- ;;(doxymacs-font-lock)
;; custom keys
(local-set-key (kbd "C-c f") 'ff-find-other-file) ; toggle header/source file
(local-set-key (kbd "C-c C-c") 'comment-or-uncomment-region)
- ;; code folding
- (local-set-key (kbd "C-c v") 'hs-toggle-hiding)
- (local-set-key (kbd "<f1>") 'hs-hide-all)
- (local-set-key (kbd "<f2>") 'hs-show-all)
- (hs-minor-mode t) ; enable hide-show mode
+ ;; ;; code folding
+ ;; (local-set-key (kbd "C-c v") 'hs-toggle-hiding)
+ ;; (local-set-key (kbd "<f1>") 'hs-hide-all)
+ ;; (local-set-key (kbd "<f2>") 'hs-show-all)
+ ;; (hs-minor-mode t) ; enable hide-show mode
;; gdb settings
(setq
gdb-many-windows t ; gdb many windows
gdb-use-separate-io-buffer t ; gdb stdio output
- setq gud-tooltip-mode t) ; mouse hover variables
+ gud-tooltip-mode t) ; mouse hover variables
(local-set-key (kbd "C-c g") 'gdb) ; gdb
;; auto-close bracing
+ (setq parens-require-spaces nil)
(dolist (key '("(" "[")) (define-key (current-local-map) key 'insert-pair))
))
--- a/init.el Sun Dec 13 11:45:37 2009 -0600
+++ b/init.el Sun Aug 08 18:28:26 2010 -0500
@@ -9,7 +9,8 @@
x-select-enable-clipboard t ; paste from X buffer
inhibit-splash-screen t ; disable splash screen
truncate-lines t ; truncate, not wrap, lines
- indent-tabs-mode nil) ; mouse hover variables
+ indent-tabs-mode nil ; mouse hover variables
+ split-width-threshold 181) ; min width to split window horizontially
(put 'set-goal-column 'disabled nil) ; enable goal column setting
(put 'narrow-to-region 'disabled nil) ; enable hiding
@@ -22,7 +23,7 @@
(ido-mode t) ; file/buffer selector
(setq-default ido-enable-flex-matching t) ; fuzzy matching for ido mode
(add-hook 'text-mode-hook 'flyspell-mode t) ; spellcheck text
-(add-hook 'text-mode-hook 'turn-on-aut-fill) ; autofill text
+(add-hook 'text-mode-hook 'turn-on-auto-fill) ; autofill text
;; whitespace
(global-whitespace-mode t) ; show whitespace
@@ -38,13 +39,26 @@
(show-paren-mode t) ; show matching paren
(transient-mark-mode t) ; show highlighting
(global-font-lock-mode t) ; syntax highlighting
+(setq-default compile-command "scons ") ; compile command
(global-set-key (kbd "C-c c") 'compile) ; compile
(global-set-key (kbd "C-c r") 'recompile) ; recompile
+(global-set-key (kbd "C-c C-c") ; comment
+ 'comment-or-uncomment-region)
;; includes
(require 'hoersten-pastebin-region) ; send selected text to pastebin
-(require 'mercurial) ; load mercurial mode
(require 'hoersten-c-style) ; load c specific lisp
+(require 'hide-lines) ; hide lines based on regexp
+(require 'vala-mode) ; vala programming language
+
+;; Xrefactory
+;; (setq load-path (cons "~/xref/emacs" load-path))
+;; (setq exec-path (cons "~/xref" exec-path))
+;; (load "xrefactory")
+
+;; iedit mode
+(require 'iedit) ; interactive edit mode
+(define-key global-map (kbd "C-;") 'iedit-mode)
;; nav mode
(add-to-list 'load-path "~/.emacs.d/nav/")
@@ -71,8 +85,9 @@
uniquify-buffer-name-style 'post-forward
uniquify-separator ":")
-;; shell
-(global-set-key (kbd "C-c s") 'shell) ; start shell
+;; terminal and shell
+(global-set-key (kbd "C-c t") '(lambda () (interactive) (ansi-term "bash" "term"))) ; start term
+(global-set-key (kbd "C-c s") 'shell) ; start shell - acts like emacs buffer
(ansi-color-for-comint-mode-on) ; color in shell buffer
(setq-default
comint-scroll-to-bottom-on-input t ; only type on prompt