Browse files

Disable <RET> hooked onto newline-and-indent behavior

  • Loading branch information...
1 parent da2d228 commit 4792bbe3ad116cb420438d17a9c749eeb64c4a20 @rosslagerwall committed Sep 18, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 bindings.el
View
16 bindings.el
@@ -8,20 +8,20 @@
(global-set-key (kbd "<f10>") 'compile)
;; enter is newline & indent for c mode
-(add-hook 'c-mode-common-hook '(lambda ()
- (local-set-key (kbd "RET") 'newline-and-indent)))
+;;(add-hook 'c-mode-common-hook '(lambda ()
+;; (local-set-key (kbd "RET") 'newline-and-indent)))
;; enter is newline
-(add-hook 'c-mode-common-hook '(lambda ()
- (local-set-key (kbd "C-j") 'newline)))
+;;(add-hook 'c-mode-common-hook '(lambda ()
+;; (local-set-key (kbd "C-j") 'newline)))
;; enter is newline & indent for python mode
-(add-hook 'python-mode-hook '(lambda ()
- (local-set-key (kbd "RET") 'newline-and-indent)))
+;;(add-hook 'python-mode-hook '(lambda ()
+;; (local-set-key (kbd "RET") 'newline-and-indent)))
;; enter is newline
-(add-hook 'python-mode-hook '(lambda ()
- (local-set-key (kbd "C-j") 'newline)))
+;;(add-hook 'python-mode-hook '(lambda ()
+;; (local-set-key (kbd "C-j") 'newline)))
;; move to mark with F9
(defun jump-to-mark ()

0 comments on commit 4792bbe

Please sign in to comment.