Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Easier Window Switching in Emacs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
deech  
View profile  
 More options Apr 27 2008, 7:26 pm
Newsgroups: gnu.emacs.help
From: deech <aditya.si...@gmail.com>
Date: Sun, 27 Apr 2008 16:26:03 -0700 (PDT)
Local: Sun, Apr 27 2008 7:26 pm
Subject: Easier Window Switching in Emacs
Hi all,
Has anyone else noticed that window switching in emacs is a
bit cumbersome?

About a month ago I created a new prefix key C-t and bound
h,j,k,l to move to the left, top, bottom, and right window
respectively. Here is the snippet in my .emacs file that makes this
happen. Please note that this destroys C-t which is by default bound
to transpose-char. If you use this a lot try another prefix key.

;;Make window switching a little easier. C-x-o is a pain.
;;Unbind C-t. I don't really care about transposing chars.
(global-unset-key "\C-t")
;; Turn C-t into a prefix key
(define-prefix-command 'ctrl-t-prefix)
;; And within C-t bind vi-style navigation shortcuts
;; to window switching
(define-key 'ctrl-t-prefix "j" 'windmove-down)
(define-key 'ctrl-t-prefix "k" 'windmove-up)
(define-key 'ctrl-t-prefix "h" 'windmove-left)
(define-key 'ctrl-t-prefix "l" 'windmove-right)
(global-set-key "\C-t" 'ctrl-t-prefix)

Deech


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Apr 27 2008, 7:42 pm
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 27 Apr 2008 23:42:20 GMT
Local: Sun, Apr 27 2008 7:42 pm
Subject: Re: Easier Window Switching in Emacs

deech wrote:
> Hi all,
> Has anyone else noticed that window switching in emacs is a
> bit cumbersome?

not since i discovered windmove:

(windmove-default-keybindings)

in .emacs, then switch windows using shift + arrow key.

there are other solutions to this as well, IIRC.

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Kanis  
View profile  
 More options Apr 29 2008, 8:37 pm
Newsgroups: gnu.emacs.help
From: Ivan Kanis <expire-by-2008-05...@kanis.fr>
Date: Wed, 30 Apr 2008 02:37:30 +0200
Local: Tues, Apr 29 2008 8:37 pm
Subject: Re: Easier Window Switching in Emacs

deech <aditya.si...@gmail.com> writes:
> Has anyone else noticed that window switching in emacs is a
> bit cumbersome?

I used to think so till I bound C-o to other-window. Some people will
tell you it's heresy to override default emacs bindings :)
--
Ivan
http://kanis.fr

  "I have never met anyone who can do Scheme, Haskell, and C pointers
who can't pick up Java in two days, and create better Java code than
people with five years of experience in Java, but try explaining that
to the average HR drone."
    -- Joel Spolsky


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »