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

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

Re: define-key for fortran code


From: Emanuel Berg
Subject: Re: define-key for fortran code
Date: Sat, 29 May 2021 16:37:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

jaime-escalante wrote:

> I cannot follow how to use your function
>
> (define-key f90-mode-map key fun)
>
> I was passing the key sequence as (kbd "H-o q"), you are
> using "key" and just pass "q" to it. Could I just pass "H-o
> q" to it?

Why ever `define-key' would not behave like a normal defun
I don't know so why ever not?

However I'd rather pass "\H-oq" - if indeed H-o has been
defined as a prefix command. And you can find out by just
evaling the string, here "\H-oq" - for me it says

  elisp--preceding-sexp: Invalid modifier in string

so here, it hasn't.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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