emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Orgmode <emacs-orgmode@gnu.org>
Subject: Re: IDE tools for maintaining Emacs Lisp programs (Org in particular)
Date: Sat, 21 Apr 2012 10:29:12 +0530	[thread overview]
Message-ID: <817gx9vfxb.fsf@gmail.com> (raw)
In-Reply-To: <81bomlvgoi.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 21 Apr 2012 10:12:53 +0530")

Jambunathan K <kjambunathan@gmail.com> writes:

> For all practical purposes, I find this be sufficient.
> (global-set-key (kbd "C-c f")
> 		(lambda ()
> 		  (interactive)
> 		  (require 'finder)
> 		  (let ((thing (intern (thing-at-point 'symbol))))
> 		    (if (functionp thing)
> 			(find-function thing)
> 		      (find-variable thing)))))
> Put your cursor on a variable or a function, C-c f and you are staring
> right at the definition of the variable or function.  For this to work,
> the library defining the function or variable should already be
> loaded.

Just discovered this from find-func.el

(require 'find-func)

will install the below keymap for you.

It would have been more practical if these functions, made a decision of
whether some symbol is a function or a variable automatically.  There is
also this C-x K.

| (defun find-function-setup-keys ()
|   "Define some key bindings for the find-function family of functions."
|   (define-key ctl-x-map "F" 'find-function)
|   (define-key ctl-x-4-map "F" 'find-function-other-window)
|   (define-key ctl-x-5-map "F" 'find-function-other-frame)
|   (define-key ctl-x-map "K" 'find-function-on-key)
|   (define-key ctl-x-map "V" 'find-variable)
|   (define-key ctl-x-4-map "V" 'find-variable-other-window)
|   (define-key ctl-x-5-map "V" 'find-variable-other-frame))


  reply	other threads:[~2012-04-21  4:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-20 20:56 IDE tools for maintaining Emacs Lisp programs (Org in particular) Sebastien Vauban
2012-04-20 23:30 ` Bastien
2012-04-21  4:42 ` Jambunathan K
2012-04-21  4:59   ` Jambunathan K [this message]
2012-04-21 15:28     ` Eric Schulte

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=817gx9vfxb.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).