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..
how do I run this Emacs M-x command "wg-update-workgroup"...
-
- Posts: 153
- Joined: Tue Sep 03, 2013 5:32 am
Re: how do I run this Emacs M-x command "wg-update-workgroup
Usually by adding
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:
Code: Select all
(add-hook 'kill-emacs-hook 'wg-update-workgroup)
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?