Page 1 of 1

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

Posted: Sat Sep 07, 2013 5:19 am
by joeish80829
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

Posted: Sat Sep 07, 2013 9:18 pm
by edgar-rft
Usually by adding

Code: Select all

(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