From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Autocompletion of Emacs Lisp Symbols in Buffer
Date: Thu, 6 May 2010 10:05:37 -0700 (PDT) [thread overview]
Message-ID: <da5b444c-56a4-4af5-b2f9-a35597069223@k29g2000yqh.googlegroups.com> (raw)
In-Reply-To: mailman.26.1273152642.10435.help-gnu-emacs@gnu.org
On May 6, 6:30 am, Dirk80 <d...@dirkundsari.de> wrote:
> When I'm in lisp-interaction-mode or emacs-lisp mode, i.e. I'm writing
> emacs-lisp code in a buffer, then I would like to have the feature of
> autocompletion when I'm pressing tab.
it is already implemented. The command is lisp-complete-symbol, the
shortcut is Meta+Tab.
Because Meta is often Alt, and Alt+Tab is used by the OS, so you can
do is press Esc Tab.
However, that is very inconvenient, so i created my own key.
(defun call-keyword-completion ()
"Call the command that has keyboard shortcut M-TAB."
(interactive)
(call-interactively (key-binding (kbd "M-TAB")))
)
then give a shortcut to call-keyword-completion, e.g. on Dvorak
keyboard i have
(global-set-key (kbd "M-y") 'call-keyword-completion)
also, you might bind Meta+Shift+y for dabbrev-expand, which does
completion by words already in the buffer. (e.g. from your own
functions, variables)
I think this Meta+Tab conflict with Alt+Tab used by Windows, Mac,
Linux, is a major emacs usability problem. It forces people to make a
choice between a “emacs world” and all others. In the past when i
asked what other heavy emacs users do, seems they either have
completely alterted their keyboard shortcuts on their system so that
emacs's way prevales, or simply doesn't do anything about it, and just
press Esc Tab for completion.
Xah
∑ http://xahlee.org/
☄
next parent reply other threads:[~2010-05-06 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.26.1273152642.10435.help-gnu-emacs@gnu.org>
2010-05-06 17:05 ` Xah Lee [this message]
2010-05-06 19:41 ` Autocompletion of Emacs Lisp Symbols in Buffer Lennart Borgman
2010-05-07 9:45 ` Dirk80
[not found] ` <mailman.9.1273238866.2075.help-gnu-emacs@gnu.org>
2010-05-07 14:21 ` Andreas Politz
2010-05-08 3:03 ` Xah Lee
2010-05-07 2:47 ` Stefan Monnier
2010-05-06 13:30 Dirk80
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da5b444c-56a4-4af5-b2f9-a35597069223@k29g2000yqh.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.