|
From: | B. T. Raven |
Subject: | Re: Running .emacs style commands within emacs |
Date: | Mon, 19 May 2008 23:32:20 -0500 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Ben Forbes wrote:
In my .emacs init file I have commands like (fset 'delete-whole-line "\C-a\C-k\C-k") How can I run a command like this from within emacs? It doesn't seem to be recognized when I try "M-x fset".
This is just the expression generated when you save a macro. Try C-h f 'delete-whole-line and a *Help buffer will show this. You could shorten the macro name to 'dln and it would work the same. Try this and then invoke with M-x dln. So it's just go to beginning of line, kill line, kill newline. You can define keyboard macros and not save them if you need them for only one session.
Ed
[Prev in Thread] | Current Thread | [Next in Thread] |