summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2014-02-02 19:55:47 (GMT)
committerRavikiran Rajagopal <aine.marina@gmail.com>2014-02-02 19:55:47 (GMT)
commit66859ea02e706cbc73c334b77f2b70d67edb1312 (patch)
tree996f30521eec671db5e497dc8488e1352e476846
parent9db33cdbf6ee3e61d8fe1b161c9e17b056156688 (diff)
downloaddotemacs-66859ea02e706cbc73c334b77f2b70d67edb1312.zip
dotemacs-66859ea02e706cbc73c334b77f2b70d67edb1312.tar.gz
dotemacs-66859ea02e706cbc73c334b77f2b70d67edb1312.tar.bz2
More keybindings and region fixes
-rw-r--r--ravi-init-cpp.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/ravi-init-cpp.el b/ravi-init-cpp.el
index 51b28c8..0e7fe3f 100644
--- a/ravi-init-cpp.el
+++ b/ravi-init-cpp.el
@@ -151,10 +151,12 @@
(doxymacs-font-lock)
;(define-key c-mode-base-map [return] 'c-context-line-break)
- ;(bind-key "<return>" 'c-newline-and-indent c-mode-base-map)
+ (bind-key "<return>" 'c-context-line-break c-mode-base-map)
(unbind-key "M-j" c-mode-base-map)
(bind-key "C-c C-i" 'c-includes-current-file c-mode-base-map)
+ (when (and (featurep 'ravi-ergodox-mode) ravi-ergodox-mode)
+ (bind-key "H-h" 'compile-dwim c-mode-base-map))
(set (make-local-variable 'parens-require-spaces) t)
(setq fill-column 88)
@@ -372,6 +374,10 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named
(re-search-backward " ;[[:space:]\n]*")
(delete-char 1)))))
+ ;; Do not activate region as it interferes with region-bindings-mode
+ (defadvice c-electric-brace (after ravi/do-not-activate-region activate)
+ (setq deactivate-mark t))
+
(defmacro ravi/fake-send-key (key-to-bind char-to-bind)
(let ((command (key-binding key-to-bind)))
(setq last-command-event char-to-bind)