comparison .elisp/settings/40.modes.el @ 257:31f86a5707ee

c++: enable tab completion
author Augie Fackler <durin42@gmail.com>
date Thu, 13 Jan 2011 12:43:22 -0600
parents 7ca719e40c58
children 863f1503616f
comparison
equal deleted inserted replaced
256:308c884414bc 257:31f86a5707ee
13 (local-set-key [tab] 'indent-or-expand)) 13 (local-set-key [tab] 'indent-or-expand))
14 14
15 ;; add hooks for modes you want to use the tab completion for: 15 ;; add hooks for modes you want to use the tab completion for:
16 (set-variable 'af-cleanup-whitespace t) 16 (set-variable 'af-cleanup-whitespace t)
17 (add-hook 'c-mode-hook 'af-tab-fix) 17 (add-hook 'c-mode-hook 'af-tab-fix)
18 (add-hook 'c++-mode-hook 'af-tab-fix)
18 (add-hook 'sh-mode-hook 'af-tab-fix) 19 (add-hook 'sh-mode-hook 'af-tab-fix)
19 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix) 20 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
20 21
21 ;; disable whitespace cleanup in modes sensitive to whitespace 22 ;; disable whitespace cleanup in modes sensitive to whitespace
22 (defun af-no-clean-whitespace () 23 (defun af-no-clean-whitespace ()