all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Make command available accordnig to major mode
@ 2024-04-02 11:44 Heime
  2024-04-02 16:20 ` Heime
  2024-04-03 11:23 ` Michael Albinus
  0 siblings, 2 replies; 5+ messages in thread
From: Heime @ 2024-04-02 11:44 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-03 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 11:44 Make command available accordnig to major mode Heime
2024-04-02 16:20 ` Heime
2024-04-03 11:23 ` Michael Albinus
2024-04-03 12:00   ` Heime
2024-04-03 12:14     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.