summaryrefslogtreecommitdiffstats
path: root/ravi-init-appearance.el
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2014-01-06 05:39:28 (GMT)
committerRavikiran Rajagopal <aine.marina@gmail.com>2014-01-06 05:39:28 (GMT)
commitdb5d0a6ef360ce752143acdd4760b8ad88b83757 (patch)
tree0885c8fd309b08d899c3694893f17693a2f8185d /ravi-init-appearance.el
parent14df3f12d7ea4838e9eadefd8dc04f5e2744a4e3 (diff)
downloaddotemacs-db5d0a6ef360ce752143acdd4760b8ad88b83757.zip
dotemacs-db5d0a6ef360ce752143acdd4760b8ad88b83757.tar.gz
dotemacs-db5d0a6ef360ce752143acdd4760b8ad88b83757.tar.bz2
Disable auto-indent-mode as it is too complex
Diffstat (limited to 'ravi-init-appearance.el')
-rw-r--r--ravi-init-appearance.el21
1 files changed, 21 insertions, 0 deletions
diff --git a/ravi-init-appearance.el b/ravi-init-appearance.el
index 56ae28a..0571f9d 100644
--- a/ravi-init-appearance.el
+++ b/ravi-init-appearance.el
@@ -84,6 +84,9 @@
;; Prevent addition of lines at end of file when down arrow is pressed.
(setq next-line-add-newlines nil)
+;; Kill the entire line, please
+(setq kill-whole-line t)
+
;; Easily navigate sillycased words
(global-subword-mode 1)
@@ -92,6 +95,23 @@
:ensure t
)
+;; Enable automatic indentation, if possible
+(bind-key "<return>" 'newline-and-indent prog-mode-map)
+
+;; Automatic indentation of yanked text
+(dolist (command '(yank yank-pop))
+ (eval `(defadvice ,command (after indent-region activate)
+ (and (not current-prefix-arg)
+ (member major-mode '(emacs-lisp-mode lisp-mode
+ clojure-mode scheme-mode
+ haskell-mode ruby-mode
+ rspec-mode python-mode
+ c-mode c++-mode
+ objc-mode latex-mode
+ plain-tex-mode))
+ (let ((mark-even-if-inactive transient-mark-mode))
+ (indent-region (region-beginning) (region-end) nil))))))
+
;; Keep my navigation simple
(setq line-move-visual nil)
@@ -117,6 +137,7 @@
(progn
(add-hook 'dired-mode-hook 'discover-turn-on-in-dired)
)
+ :disabled t ;; unstable API and hosing user-provided keybindings
:ensure t
)