mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Use functions instead of lambdas for mode customizations
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user