From 7d4878394406e27bf3d1211b39380374ff1172cf Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 3 Jul 2012 19:11:13 +0100 Subject: [PATCH] Enable auto-complete-mode for major modes where it's useful --- mode-customizations/coffee-mode.el | 1 + mode-customizations/conf-mode.el | 3 ++- mode-customizations/css-mode.el | 1 + mode-customizations/emacs-lisp-mode.el | 3 ++- mode-customizations/erlang-mode.el | 1 + mode-customizations/haml-mode.el | 1 + mode-customizations/js-mode.el | 1 + mode-customizations/lisp-mode.el | 3 ++- mode-customizations/makefile-mode.el | 1 + mode-customizations/php-mode.el | 1 + mode-customizations/python-mode.el | 1 + mode-customizations/sh-mode.el | 3 ++- mode-customizations/yaml-mode.el | 3 ++- 13 files changed, 18 insertions(+), 5 deletions(-) diff --git a/mode-customizations/coffee-mode.el b/mode-customizations/coffee-mode.el index b0493e7..82ea9cc 100644 --- a/mode-customizations/coffee-mode.el +++ b/mode-customizations/coffee-mode.el @@ -6,6 +6,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) diff --git a/mode-customizations/conf-mode.el b/mode-customizations/conf-mode.el index d958175..97437fe 100644 --- a/mode-customizations/conf-mode.el +++ b/mode-customizations/conf-mode.el @@ -2,6 +2,7 @@ (interactive) (flyspell-prog-mode) (linum-mode t) - (fci-mode)) + (fci-mode) + (auto-complete-mode)) (add-hook 'conf-mode-hook 'customizations-for-conf-mode) diff --git a/mode-customizations/css-mode.el b/mode-customizations/css-mode.el index b4e4200..b5f5601 100644 --- a/mode-customizations/css-mode.el +++ b/mode-customizations/css-mode.el @@ -3,6 +3,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq css-indent-offset 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) diff --git a/mode-customizations/emacs-lisp-mode.el b/mode-customizations/emacs-lisp-mode.el index 61db802..4939b17 100644 --- a/mode-customizations/emacs-lisp-mode.el +++ b/mode-customizations/emacs-lisp-mode.el @@ -3,6 +3,7 @@ (setq whitespace-action (quote (auto-cleanup))) (flyspell-prog-mode) (linum-mode t) - (fci-mode)) + (fci-mode) + (auto-complete-mode)) (add-hook 'emacs-lisp-mode-hook 'customizations-for-emacs-lisp-mode) diff --git a/mode-customizations/erlang-mode.el b/mode-customizations/erlang-mode.el index c08c73d..7addd17 100644 --- a/mode-customizations/erlang-mode.el +++ b/mode-customizations/erlang-mode.el @@ -13,6 +13,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq highlight-indentation-offset 2) (highlight-indentation-mode) (highlight-indentation-current-column-mode)) diff --git a/mode-customizations/haml-mode.el b/mode-customizations/haml-mode.el index b8a86bf..3052b80 100644 --- a/mode-customizations/haml-mode.el +++ b/mode-customizations/haml-mode.el @@ -3,6 +3,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) diff --git a/mode-customizations/js-mode.el b/mode-customizations/js-mode.el index b49df8b..03e8b87 100644 --- a/mode-customizations/js-mode.el +++ b/mode-customizations/js-mode.el @@ -4,6 +4,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode)) diff --git a/mode-customizations/lisp-mode.el b/mode-customizations/lisp-mode.el index cfc2dda..b80cf39 100644 --- a/mode-customizations/lisp-mode.el +++ b/mode-customizations/lisp-mode.el @@ -3,6 +3,7 @@ (setq whitespace-action (quote (auto-cleanup))) (flyspell-prog-mode) (linum-mode t) - (fci-mode)) + (fci-mode) + (auto-complete-mode)) (add-hook 'lisp-mode-hook 'customizations-for-lisp-mode) diff --git a/mode-customizations/makefile-mode.el b/mode-customizations/makefile-mode.el index 6f6e445..f315f84 100644 --- a/mode-customizations/makefile-mode.el +++ b/mode-customizations/makefile-mode.el @@ -3,6 +3,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq tab-width 4) (highlight-indentation-mode)) diff --git a/mode-customizations/php-mode.el b/mode-customizations/php-mode.el index f941c80..26e911a 100644 --- a/mode-customizations/php-mode.el +++ b/mode-customizations/php-mode.el @@ -6,6 +6,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (highlight-indentation-mode)) (add-hook 'php-mode-hook 'customizations-for-php-mode) diff --git a/mode-customizations/python-mode.el b/mode-customizations/python-mode.el index a6d0322..b66363a 100644 --- a/mode-customizations/python-mode.el +++ b/mode-customizations/python-mode.el @@ -3,6 +3,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (highlight-indentation-mode) (highlight-indentation-current-column-mode) (define-key python-mode-map (kbd "RET") 'newline-and-indent)) diff --git a/mode-customizations/sh-mode.el b/mode-customizations/sh-mode.el index 97f8d18..60a9ea8 100644 --- a/mode-customizations/sh-mode.el +++ b/mode-customizations/sh-mode.el @@ -3,10 +3,11 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) + (auto-complete-mode) (setq sh-basic-offset 2) (setq sh-indentation 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) - (define-key sh-mode-map (kbd "RET") 'reindent-then-newline-and-indent)) + (define-key sh-mode-map (kbd "RET") 'reindent-then-newline-and-indent)) (add-hook 'sh-mode-hook 'customizations-for-sh-mode) diff --git a/mode-customizations/yaml-mode.el b/mode-customizations/yaml-mode.el index de7e1e7..cf49c9f 100644 --- a/mode-customizations/yaml-mode.el +++ b/mode-customizations/yaml-mode.el @@ -7,7 +7,8 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) - (setq highlight-indentation-offset 2) + (auto-complete-mode) + (setq highlight-indentation-offset 2) (highlight-indentation-mode) (highlight-indentation-current-column-mode) (define-key yaml-mode-map (kbd "RET") 'newline-and-indent))