This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

how do I run this Emacs M-x command "wg-update-workgroup"...

2 posts · 5924 views

how do I run this Emacs M-x command "wg-update-workgroup" automatically before emacs closes?
when I right click the launcher...icon..and select quit.. I would like this command to be run right before emacs exits....so when I righjt click the launcher icon and select quit then this command "wg-update-workgroup" is run then emacs exits..

Re: how do I run this Emacs M-x command "wg-update-workgroup

Usually by adding
(add-hook 'kill-emacs-hook 'wg-update-workgroup)
to your .emacs file.

But please note that if I type "M-x wg-update-workgroup" in my emacs23 on Debian Wheezy, I only get "no match", so I have no idea what "launcher icon" and "wg-update-workgroup" command you are talking about, probably because some important informations are missing:
  • What is your Emacs version?
  • What is your operating system?
  • What Emacs package does the "wg-update-workgroup" command come from?
- edgar