all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anselm Helbig <anselm.helbig+news2009@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs Telling You the Kind of the Variable Under the Cursor?
Date: Wed, 27 May 2009 15:57:47 +0200	[thread overview]
Message-ID: <87prdutzqc.wl%anselm.helbig+news2009@googlemail.com> (raw)
In-Reply-To: <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>

Hi!

> The email title almost says it all.
> I read in a slashdot post that you can configure Emacs so that it will 
> tell you/display somewhere (there were no details in that post) the type 
> of the variable under the cursor.
> This sounds handy, but I have no idea how to activate this feature 
> (given but not granted that it exists really).
> Any hints?

I think you're looking for eldoc-mode. I've got this in my .emacs:

(mapc (lambda (mode-hook) 
        (add-hook mode-hook 'turn-on-eldoc-mode))
      '(emacs-lisp-mode-hook lisp-interaction-mode-hook ielm-mode-hook))

In principle this is not limited to elisp, you can implement this
functionality for any language/major-mode, I did a toy implementation
for PHP once.

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


  parent reply	other threads:[~2009-05-27 13:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>
2009-05-27 13:24 ` Emacs Telling You the Kind of the Variable Under the Cursor? B. T. Raven
2009-05-27 13:38 ` Richard Riley
2009-05-27 13:57 ` Anselm Helbig [this message]
2009-05-27 13:03 Lorenzo Isella

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=87prdutzqc.wl%anselm.helbig+news2009@googlemail.com \
    --to=anselm.helbig+news2009@googlemail.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.