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

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

Make command available accordnig to major mode


From: Heime
Subject: Make command available accordnig to major mode
Date: Tue, 02 Apr 2024 11:44:51 +0000

I have a file gali.el and want to be able to call the command 
gali-bash only when I am in sh-mode.  What can I do.

;; ----------------------------------------------------

File bovu/bovu-bash.el

(defconst bovu-bash-func
  "FCNAME ()
 {
  ACTN
 }")

(provide 'bovu-bash)

;; -------------------------------------------------------

File gali.el

(defun gali-bash (actm)
  (interactive)
  (insert bovu-bash-func))



Sent with Proton Mail secure email.



reply via email to

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