From: tfheen Date: Sat, 31 May 2003 20:34:42 +0000 (+0000) Subject: completion stuff X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45bc58075f4edac8f476b3b2d4e8066deea1ee60;p=dotfiles completion stuff git-svn-id: file:///svn/tfheen/trunk/dotfiles@159 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/emacs b/emacs index bb1c3c4..bffac11 100644 --- a/emacs +++ b/emacs @@ -201,8 +201,15 @@ (global-set-key [end] 'end-of-buffer) (setq cursor-in-non-selected-windows nil)) +(defun tfheen-complete (&optional x) + (interactive) + (if (eq major-mode 'jde-mode) + (jde-complete-at-point) + (hippie-expand x))) + (global-set-key [C-tab] 'dabbrev-expand) -(global-set-key [M-space] '(lambda() (insert " "))) +(global-set-key "\M- " 'tfheen-complete) + ;(add-hook 'diary-hook 'appt-make-list) ;(add-hook 'diary-hook 'appt-make-list)