 (global-set-key "\C-cp" 'previous-error)
 (global-set-key "\C-ci" 'indent-region)
 
+;; if no region is active, act on current line
+(require 'whole-line-or-region)
+(setq whole-line-or-region-extensions-alist
+      '((comment-dwim whole-line-or-region-comment-dwim-2 nil)
+        (copy-region-as-kill whole-line-or-region-copy-region-as-kill nil)
+        (kill-region whole-line-or-region-kill-region nil)
+        (kill-ring-save whole-line-or-region-kill-ring-save nil)
+        (yank whole-line-or-region-yank nil)
+        ))
+(whole-line-or-region-mode 1)
+
+;; better rectangle functionality
+(require 'phi-rectangle)
+(phi-rectangle-mode)
+
 ;; save minibuffer history
 (savehist-mode 1)
 (setq savehist-file "~/.emacs.d/cache/history")

(global-set-key "\C-e" 'smart-end-of-line)



(diminish 'highlight-parentheses-mode)
(diminish 'fic-mode)
(diminish 'auto-complete-mode "AC")
(diminish 'undo-tree-mode)
(diminish 'visual-line-mode)
(diminish 'volatile-highlights-mode)
(diminish 'whole-line-or-region-mode)
(diminish 'yas-minor-mode)

;; don't start in lisp
(setq initial-major-mode 'org-mode)
