Emacs defines ` to be used for abbrevs in f90 mode. How do I change this so some other key, like e.g. # ? I think, I found the relevant lines in f90.el:
(defvar f90-mode-map (let ((map (make-sparse-keymap))) (define-key map "`" 'f90-abbrev-start) ...
but my attempts at mimicking this syntax usually lead to errors.
Thanks in advance for any help.
So I followed the advice of Aaron Harris and added:
(eval-after-load 'f90 '(define-key f90-mode-map (kbd "#") #'f90-abbrev-start))
to my .emacs. Now when I open a Fortran file and hit
C-h k #
I get the following text:
#runs the command f90-abbrev-start, which is an interactive compiled Lisp function in `f90.el'.
It is bound to #, `.
C-h or? lists all the F90 abbrevs. Any other key combination is executed normally.
is expanded to subroutine while
is not. Do I misunderstand something here?