Use functions instead of lambdas for mode customizations

This commit is contained in:
2012-04-21 20:04:48 +01:00
parent 26ef3e957a
commit 61bfb8f36d
15 changed files with 178 additions and 156 deletions

View File

@@ -1,8 +1,10 @@
(add-hook 'python-mode-hook
(lambda ()
(flyspell-prog-mode)
(linum-mode t)
(fci-mode)
(highlight-indentation-mode)
(highlight-indentation-current-column-mode)
(define-key python-mode-map (kbd "RET") 'newline-and-indent)))
(defun customizations-for-python-mode ()
(interactive)
(flyspell-prog-mode)
(linum-mode t)
(fci-mode)
(highlight-indentation-mode)
(highlight-indentation-current-column-mode)
(define-key python-mode-map (kbd "RET") 'newline-and-indent))
(add-hook 'python-mode-hook 'customizations-for-python-mode)