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

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

Re: Adding String to Beginning of Lines


From: Michael Heerdegen
Subject: Re: Adding String to Beginning of Lines
Date: Tue, 10 Nov 2020 19:49:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech <dimech@gmx.com> writes:

> The update is still giving me trouble though. Could be a problem with passing 
> the arguments
> to rec-field-nwltok
>
> I have the following
>
> (defun rec-field-nwltok (beg end nwltok)
>    (interactive
>       (list (region-beginning)
>             (region-end)
>             (read-string "rec-field-nwltok: " nil nil ";; + ")))
>    (replace-regexp "^" nwltok nil beg end) )
>
> (add-hook 'emacs-lisp-mode-hook
>    (defun myrec-field-nwltok ()
>       (define-key emacs-lisp-mode-map (kbd "H-z") #'rec-field-nwltok)))

That works well for me.  Of what kind is that trouble?

Michael.




reply via email to

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