emacs-noflet icon indicating copy to clipboard operation
emacs-noflet copied to clipboard

Bind commands?

Open vspinu opened this issue 9 years ago • 4 comments

Is there a way to re-bind commands. Something like?

(noflet ((test1 () (interactive) (insert "test1")))
  (call-interactively 'test1))

vspinu avatar Mar 23 '15 18:03 vspinu

So, I just implemented this: http://stackoverflow.com/a/29668310/125921

@nicferrier, do you have any interest in incorporating this into noflet?

DarwinAwardWinner avatar Apr 16 '15 07:04 DarwinAwardWinner

Ok, now it's a pull request.

DarwinAwardWinner avatar Apr 16 '15 08:04 DarwinAwardWinner

@DarwinAwardWinner thanks! Is it completely transparent to the user and one (interactive) inside a function would be enough?

vspinu avatar Apr 16 '15 08:04 vspinu

Yep, it just works the way you expect it to. And it works on your example.

DarwinAwardWinner avatar Apr 16 '15 08:04 DarwinAwardWinner