From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Gian Uberto Lauri" Newsgroups: gmane.emacs.help Subject: Re: how to add button to emacs that play a elisp code Date: Thu, 11 Sep 2014 10:40:07 +0200 Message-ID: <21521.24551.904371.551048@mail.eng.it> References: <04dd6007-693a-4e56-9e2a-e930e51a9563@googlegroups.com> <21521.22678.640570.26495@mail.eng.it> Reply-To: Gian Uberto Lauri NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410424855 30759 80.91.229.3 (11 Sep 2014 08:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 08:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 10:40:49 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRzvs-0002XW-IE for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 10:40:48 +0200 Original-Received: from localhost ([::1]:34878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRzvs-0003gw-4X for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 04:40:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRzvP-0003gn-Kc for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 04:40:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRzvJ-0002tX-EP for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 04:40:19 -0400 Original-Received: from relay.eng.it ([91.109.60.38]:43665 helo=mail.eng.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRzvJ-0002tG-48 for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 04:40:13 -0400 Original-Received: from bms2.eng.it (unknown [192.168.10.43]) by deliver.antivirus (Postfix) with ESMTP id CD15F40002 for ; Thu, 11 Sep 2014 10:40:08 +0200 (CEST) X-AuditID: c0a80a2b-f79336d000002282-36-541168652594 Original-Received: from mail.eng.it (Unknown_Domain [192.168.10.31]) by bms2.eng.it (Symantec Messaging Gateway) with SMTP id 22.36.08834.56861145; Thu, 11 Sep 2014 11:16:21 +0200 (CEST) Original-Received: from quigley (unknown [172.27.7.115]) by mail.eng.it (Postfix) with ESMTP id 8BEA540006 for ; Thu, 11 Sep 2014 10:40:08 +0200 (CEST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <21521.22678.640570.26495@mail.eng.it> X-Mailer: VM 8.1.1 under 24.3.92.1 (x86_64-unknown-linux-gnu) X-attribution: CC X-echelon-food: Zachawi HIC Rubin weapons of mass destruction OSS Cocaine Al Jazeera national information infrastructure Spammer Cohiba Rapid Reaction CNCIS NORAD Delays al-Qaida X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVyYAWXvG5qhmCIQfM0OYudN9+wOTB6tE0z C2CM4rJJSc3JLEst0rdL4Mp41jCZtWAdd8WSt0YNjNM5uhg5OCQETCS2XGfqYuQEMsUkLtxb z9bFyMUhJLCZUeLd7VYoZxWjxKanL1hBqngFBCVOznzCAmIzC+hI7Nx6hw3C1pZYtvA1M0SN sUR/605GEJtFQFXiyPvfYDUiAlIS59ecYARZLCxgJ3H2iyFImA8o/Ov5PrASTqDWxbPXgI0R EsiReH1rAivEcbYS7eunMUHEdSQeP1sJVs8moCnR+RxirQTQaS+PTWMEuVlCYAejxPMpH1gm MArPQnL2LCRnz0Jy9gJG5lWM3Em5xUZ6qXnpepklmxghIau9g/HMNNVDjAIcjEo8vBtuPA8S Yk0sK67MPcQowcGsJMI7XfJFkBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeCPeVPkIC6Yklqdmp qQWpRTBZJg5OqQZGW5H1d5zCSnyW59o7cAXfieA9KNv5OGYJ902ljo2WL8LmH2G43PFrbu7R pfPvVStefmqhYXL4u/nMlz2RBf9k/VVMdy4qDlN0/bdluvrbS0fsbsmf/KKcuqg+Sy383o/K wIxJW8pbuR2ZRNb96fqZ/tO+9ea2qOuuMhb9Gt5R9WqlL+8EuMxSYinOSDTUYi4qTgQAcmLP 6FUCAAA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 91.109.60.38 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99804 Archived-At: My apologies for breaking the threading, I lost the original message I am replying to. In Emacs you can have global keybindings (that are active no matter what is the current buffer) and local ones (active only in the buffers they are defined for). The functions to use are (global-set-key [(super meta i)]=20 '(lambda ()=20 (interactive) (ispell-change-dictionary "italian"))) (this example changes the ispell dictionary to Italian and is bound to super meta i) the other function is (local-set-key [=3F\s-w] 'jde-complete) This is another syntax to use the "super" modifier. At this time the 'standard' us(altgr-intl) X11 keyboard layout only gives me Super, but I plan to hack that to have hyper back. Despite not this standard, these modifiers from the space cadet keyboard give you plenty of quick-to-access keystroke that do not need a prefix you can use for your own customization. --=20 /\ =5F=5F=5F Ubuntu: anci= ent /=5F=5F=5F/\=5F|=5F|\=5F|=5F=5F|=5F=5F=5FGian Uberto Lauri=5F=5F=5F=5F=5F= African word //--\| | \| | Integralista GNUslamico meaning "I can \/ coltivatore diretto di software not install gi=E0 sistemista a tempo (altrui) perso... Debian" Warning: gnome-config-daemon considered more dangerous than GOTO