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,7 +1,9 @@
|
||||
(add-hook 'php-mode-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(flyspell-prog-mode)
|
||||
(linum-mode t)
|
||||
(fci-mode)
|
||||
(highlight-indentation-mode)))
|
||||
(defun customizations-for-php-mode ()
|
||||
(interactive)
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(flyspell-prog-mode)
|
||||
(linum-mode t)
|
||||
(fci-mode)
|
||||
(highlight-indentation-mode))
|
||||
|
||||
(add-hook 'php-mode-hook 'customizations-for-php-mode)
|
||||
|
||||
Reference in New Issue
Block a user