Using tempo-expand-if-complete
"Ones Self" <[email protected]>
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've tried hooking up my tab to expand templates or tab.
I defined the following function:
(defun tempo-tab ()
(interactive "*")
(or (tempo-expand-if-complete)
(c-indent-command)))
; then hooked it up to me tab
(local-set-key [tab] 'tempo-tab)
This works most of the time, unless there's something wrong with the current file structure (which happens during code writing). For example, if I hit tab on this after this line:
public classs
#
^ point is here
I will get:
byte-code: Invalid function: (macro . #[(position &optional point) "[bunch of binary I couldn't paste]" [point position save-excursion goto-char quote eval bol (beginning-of-line) eol (end-of-line) ...] 6])
--------------------------------------
Protect yourself from spam,
use http://sneakemail.com