[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Autoindentation in all modes
From: |
Alexander Stepanov |
Subject: |
Autoindentation in all modes |
Date: |
Wed, 28 Mar 2012 19:29:56 -0000 |
User-agent: |
G2/1.0 |
Is it possible to rewrite this ugly code in my ~/.emacs? What is the
good way to do the %subject%?
(add-hook 'c-mode-common-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-indent)))
(add-hook 'ruby-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)))
(add-hook 'java-mode-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-indent)))
(add-hook 'css-mode-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-indent)))
(add-hook 'xml-mode-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-
indent)))
(add-hook 'html-mode-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-indent)))
- Autoindentation in all modes,
Alexander Stepanov <=
Re: Autoindentation in all modes, Ted Zlatanov, 2012/03/28
Re: Autoindentation in all modes, Stefan Monnier, 2012/03/28