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

Discussion of Emacs Lisp
Post Reply
joeish80829
Posts: 153
Joined: Tue Sep 03, 2013 5:32 am

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

Post by joeish80829 » Sat Sep 07, 2013 5:19 am

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..

edgar-rft
Posts: 226
Joined: Fri Aug 06, 2010 6:34 am
Location: Germany

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

Post by edgar-rft » Sat Sep 07, 2013 9:18 pm

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

Post Reply