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

Discussion of Emacs Lisp

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

Postby 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..
joeish80829
 
Posts: 96
Joined: Tue Sep 03, 2013 5:32 am

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

Postby 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
edgar-rft
 
Posts: 147
Joined: Fri Aug 06, 2010 6:34 am
Location: Germany


Return to Emacs Lisp

Who is online

Users browsing this forum: No registered users and 1 guest