From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: how to remove a menu item? Date: Tue, 03 Feb 2009 10:32:09 -0600 Message-ID: References: <49e5ffec-55fe-433d-b489-0f4c82ab3aff@y23g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1233679323 20490 80.91.229.12 (3 Feb 2009 16:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 16:42:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 17:43:16 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUOMT-00028k-Sk for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 17:42:59 +0100 Original-Received: from localhost ([127.0.0.1]:47443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOLA-0007lP-Te for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 11:41:36 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 03 Feb 2009 10:32:01 -0600 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Original-Newsgroups: gnu.emacs.help,comp.emacs In-Reply-To: <49e5ffec-55fe-433d-b489-0f4c82ab3aff@y23g2000pre.googlegroups.com> Original-Lines: 117 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.232 Original-X-Trace: sv3-16Uia02YH8HKufN9fiJtO4dBFFfPGJ2P1t2y8MVkSbJeNvP0BkQNVUuH5+bikuzKwxmITP3494g+dqX!ulDIbYTTd9FcEJiI+r0vdc9Hb6sgHOyytAnqLsJcLhTJddDquT9Z/7sK2EGjjvTR1FRvDIdqY9kr!RvaLVY5u+38cjDNzKc/joOvZEaRhqq0= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:166567 comp.emacs:97743 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61881 Archived-At: Xah Lee wrote: > On Feb 1, 10:38 pm, "Drew Adams" wrote: >>> if i want to remove the menu under Help ? Emacs Psychotherapist, how >>> do i do it? > >> Either of these will get rid of this binding: >> >> (define-key global-map [menu-bar help-menu emacs-psychotherapist] nil) >> >> (define-key menu-bar-help-menu [emacs-psychotherapist] nil) > > Thanks Drew. > > Following is a removal of a bunch for those interested. > > -------------------------------- > ;; 2009-02-02 > > (define-key global-map [menu-bar edit search search-forward] nil) > (define-key global-map [menu-bar edit search search-backward] nil) > (define-key global-map [menu-bar edit search re-search-forward] nil) > (define-key global-map [menu-bar edit search re-search-backward] nil) > (define-key global-map [menu-bar edit search repeat-search-fwd] nil) > (define-key global-map [menu-bar edit search repeat-search-back] nil) > > (define-key global-map [menu-bar edit goto go-to-pos] nil) > (define-key global-map [menu-bar edit goto beg-of-buf] nil) > (define-key global-map [menu-bar edit goto end-of-buf] nil) > > (define-key global-map [menu-bar options blink-cursor-mode] nil) > (define-key global-map [menu-bar options debug-on-error] nil) > (define-key global-map [menu-bar options debug-on-quit] nil) > > (define-key global-map [menu-bar options showhide showhide-tool-bar] > nil) > (define-key global-map [menu-bar options showhide showhide-scroll-bar] > nil) > (define-key global-map [menu-bar options showhide showhide-fringe] > nil) > > (define-key global-map [menu-bar options showhide mac-font-panel-mode] > nil) > (define-key global-map [menu-bar options showhide showhide-battery] > nil) > (define-key global-map [menu-bar options showhide showhide-date-time] > nil) > (define-key global-map [menu-bar options showhide size-indication- > mode] nil) > > (define-key global-map (kbd "") nil) > > ;; tools menu > (define-key global-map [menu-bar tools gnus] nil) > (define-key global-map [menu-bar tools rmail] nil) > (define-key global-map [menu-bar tools compose-mail] nil) > (define-key global-map [menu-bar tools games] nil) > > ;; to do: > ;; • move incremental search menus one level up. > > (define-key global-map [menu-bar help-menu emacs-psychotherapist] nil) > (define-key global-map [menu-bar help-menu emacs-known-problems] nil) > (define-key global-map [menu-bar help-menu emacs-tutorial] nil) > (define-key global-map [menu-bar help-menu emacs-tutorial-language- > specific] nil) > (define-key global-map [menu-bar help-menu emacs-faq] nil) > (define-key global-map [menu-bar help-menu search-documentation emacs- > terminology] nil) > (define-key global-map [menu-bar help-menu external-packages] nil) > (define-key global-map [menu-bar help-menu more-manuals order-emacs- > manuals] nil) > > ;; to do: remove dividers > > ------------------------------ > > i started a emacs2010 project on google code. > > http://code.google.com/p/emacs2010/ > > only started this week. Much are still in flux. I wished to have a > emacs much like AquaMacs but for Window, Mac, Linux, not just for Mac > OS X. The modernization would be focused on emacs, as opposed to Apple > UI guidline (such as launching every buffer in a new window or > launching Apple's Help Application when pulling Help menu). The > primarly goal, is that user simply download binary, use it, find it a > joy, out of the box. There will be no cult, philosophy, manuals to > acquaint, geeking culture about ways and methods, etc. There will also > not be any “dumb down” for stupid people. > > .... there are much to do, and much of the change detail i have yet to > write up. If i keep at this, hopefully this goal can be achieved this > year. Anyone is very welcome to join. The code will be fully > compatible with GNU emacs, and all in GPL. So, if any FSF developers > find some idea or code interesting, it's right there to pickup. > > No guarantee this is some software in coming. Nor is this some grand > announcement. If in this year the project turns out well, then great. > Join in anytime. > > Xah > ∑ http://xahlee.org/ > > ☄ It seems like you are gutting so much of the menu that it would be easier to set menu-bar-mode to nil. Except for reassigning modifier keys (with KeyTweak) and putting cursor movement on the c,h,t,n keys (necessary with the Dvorak layout) I have found it prudent to leave most of the rest of RMS's mnemonic bindings alone. What you may end up with after all your work is just a Xah Lee minor mode. Anyway, I do agree that eventually some attention should be given to ergonomic issues but the problems are so vast especially when internationalization is taken into account that the job will have to be given to a committee rather than an individual. Ed