From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Keybinding std WAS: replace C-s with C-f Date: Tue, 18 Feb 2003 19:18:41 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1045538914.415523@sj-nntpcache-3> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045596238 4918 80.91.224.249 (18 Feb 2003 19:23:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2003 19:23:58 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lDLQ-0001H6-00 for ; Tue, 18 Feb 2003 20:23:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lDN7-0004OH-06 for gnu-help-gnu-emacs@m.gmane.org; Tue, 18 Feb 2003 14:25:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-west.rr.com!cyclone.nyroc.rr.com!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20021127 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1045538914.415523@sj-nntpcache-3> Original-Lines: 79 Original-NNTP-Posting-Host: 24.168.135.82 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1045595921 24.168.135.82 (Tue, 18 Feb 2003 14:18:41 EST) Original-NNTP-Posting-Date: Tue, 18 Feb 2003 14:18:41 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110347 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6849 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6849 John Russell wrote: > Here is a sniplet from my init file. It's commented out, because > I've wholly given up on making Emacs work how I wish. It's > obviously much smarter than me. I'd advise you to do the same. ;) ... ... > a matter of preference, but in my experience of trying to to reset > standard emacs keys, I always find myself stepping on other cool > keybindings which I have to remap to other keybidings which step on > other cool keybindings ......... > > I know that emacs is way smarter than I am. I've decided that someone > put the keybindings there because they just work. Just a thought. Well, These keybindings are options for people who complain that (X)Emacs is hard to learn, or doesn't work like editors. About the only thing missing, at this point, is that the keybindings don't show up in the menu, to the right of the commands, ex: Search... C-f I'm happy with the native bindings, but I am leaving the following turned on for some time, until I am comfortable that it works. These are all Customize options. However, I agree that it is best to migrate to native bindings. I would expect that viper users would do the same. Finally, there is a rumor, that KDE & Gnome may soon come to an agreement on keybinding standards. I feel that Emacs & XEmacs should step up to the plate, and try to conform to any reasonable standard. (cond ;email current buffer ((fboundp 'metamail-buffer) (global-set-key [(control e)] 'metamail-buffer)) ((fboundp 'w3-mail-current-document) (global-set-key [(control e)] 'w3-mail-current-document))) (global-set-key [(control p)] 'print-buffer) (global-set-key [(control s)] 'save-buffer) (global-set-key [(control q)] 'save-buffers-kill-emacs) (global-set-key [(control w)] 'kill-buffer) ;;EDIT ;;C-u duplicates selection, without affecting clipboard. Can this be done in ;;Emacs? ;;C-i inverts selection: all selected items become unselected, and vice versa (global-set-key [(control a)] 'mark-whole-buffer) (global-set-key [(control f)] 'isearch-forward) (define-key isearch-mode-map [(control f)] 'isearch-repeat-forward) ;;Control G as 'find next match' useful enough to conflict? ;;(global-set-key [(control h)] 'query-replace) ;conflicts with help (global-set-key [(control v)] 'yank) ;;Any way to build an Emacs macro for redo? ;;This replaces zap-to-char() (when (fboundp 'redo) (global-set-key [(meta z)] 'redo)) ;exists for XEmacs, only ;;VIEW (global-set-key [(control r)] 'recenter) ;"refresh view" ;;RELOAD/REFRESH ;;(global-set-key [(control d)] 'bookmark-set) ;conflicts with delete-forward ;;(global-set-key [(control b)] 'edit-bookmarks) ;;FORMAT (global-set-key [(control b)] 'bold-region) ;; (global-set-key [(control u)] 'facemenu-set-underline) ;;We need an alternative to universal-argument() to allow the previous line ;;WINDOW MANAGER STANDARDS ;;TODO: FIX FOLLOWING SYNTAX!!! (global-set-key [(meta \040)] 'tmm-menubar) ;M-space is symbiotic? )