From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: IDE tools for maintaining Emacs Lisp programs (Org in particular) Date: Sat, 21 Apr 2012 10:29:12 +0530 Message-ID: <817gx9vfxb.fsf@gmail.com> References: <80y5pqm8av.fsf@somewhere.org> <81bomlvgoi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLSPt-0001eE-Ji for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 00:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLSPq-0004ou-Sm for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 00:59:25 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:55631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLSPq-0004of-K1 for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 00:59:22 -0400 Received: by pbcup15 with SMTP id up15so1861903pbc.0 for ; Fri, 20 Apr 2012 21:59:20 -0700 (PDT) In-Reply-To: <81bomlvgoi.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 21 Apr 2012 10:12:53 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Jambunathan K 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) (find-function-setup-keys) 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)) `---- --