help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hook and interactive with parameter


From: Lajos Bodnar
Subject: hook and interactive with parameter
Date: Mon, 12 Feb 2018 11:03:52 +0100

Hi,
I'm new in emacs scripting but I would like to do that:
- I open a file after the file hook run I would like to run a function.
- I can do this without parameter but if I would like to use this function
with getting input from prompt. It will throw an error.

How can I do it what is the correct way to run this function?

(add-hook '...-hook 'my-function)

(defun my-function (param1)
   (interactive "sParam1: ")
   ....))

regards
Lajos


reply via email to

[Prev in Thread] Current Thread [Next in Thread]