Search found 4 matches

by erjoalgo
Wed Oct 31, 2012 9:08 pm
Forum: Emacs Lisp
Topic: Watch elisp functions as they are executed in emacs
Replies: 3
Views: 20834

Re: Watch elisp functions as they are executed in emacs

If you want to list in a buffer all the commands typed so far, use M-x list-command-history.
Thank you, that was exactly what I was looking for.
by erjoalgo
Wed Oct 31, 2012 11:50 am
Forum: Emacs Lisp
Topic: Retrieve source code of a function in emacs lisp
Replies: 2
Views: 18371

Retrieve source code of a function in emacs lisp

Is there a function that extracts the source code definition of a given function in elisp? For example, supposing "get-source" does what I need, ELISP> (defun say-hi () "Says hi" (message "Hi")) say-hi ELISP> (get-source 'say-hi) "(defun say-hi () "Says hi&quo...
by erjoalgo
Sun Oct 28, 2012 8:06 pm
Forum: Emacs Lisp
Topic: Watch elisp functions as they are executed in emacs
Replies: 3
Views: 20834

Watch elisp functions as they are executed in emacs

Is it possible to "watch" elisp commands as they are executed in an emacs session? For example, if I send "C-x C-f filePath", emacs runs the command "find-file filePath". How do I see the the commands, along with their arguments, that get run under an emacs session?
by erjoalgo
Sun Oct 28, 2012 9:58 am
Forum: Emacs Lisp
Topic: Do "global-set-key" for future sessions programmatically
Replies: 1
Views: 15018

Do "global-set-key" for future sessions programmatically

I need to create a function "global-set-key-future", which does the same as "global-set-key", except that the new keybinding goes into effect in future sessions. There are at least two ways to do this, neither of which I know how to do: 1) Define a function "global-set-key-f...