From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reid Priedhorsky Subject: rebinding Tab key Date: Mon, 14 May 2012 11:10:28 -0600 Message-ID: <4FB13C84.4060408@reidster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STynD-0007lp-7g for emacs-orgmode@gnu.org; Mon, 14 May 2012 13:10:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STynB-0001ez-Cm for emacs-orgmode@gnu.org; Mon, 14 May 2012 13:10:42 -0400 Received: from slice.reidster.net ([173.45.231.229]:33526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STynB-0001e4-7K for emacs-orgmode@gnu.org; Mon, 14 May 2012 13:10:41 -0400 Received: from y-128-165-96-208.lanl.gov ([128.165.96.208]:65421 helo=[10.0.2.15]) by slice.reidster.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1STyn4-0007uM-31 for emacs-orgmode@gnu.org; Mon, 14 May 2012 11:10:34 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I'm an org-mode newbie just getting started. I use a lot of other software where Tab means "indent this outline item more" and Shift-Tab means "indent this outline item less", so I'd like to make org-mode behave consistently. Also, I use Meta-Right/Left in other contexts for expanding and collapsing outline; again, I'd like to make org-mode consistent. (I've looked in the FAQ and manual, and searched the web and the mailing list but didn't come up with anything. I apologize in advance if I've missed something.) More specifically, I'd like the following keybindings: M-RIGHT - progressively expand headline if headline is in state OVERVIEW, change to CONTENTS if headline is in CONTENTS, change to SHOW ALL if headline is in SHOW ALL, do nothing M-LEFT - progressively collapse headline if headline is in SHOW ALL, change to CONTENTS if headline is in CONTENTS, change to OVERVIEW if headline is in OVERVIEW, do nothing M-S-RIGHT - progressively expand whole file M-S-LEFT - progressively collapse whole file same as without Shift, but apply to whole file instead of headline TAB - demote current subtree (what's now bound to M-S-RIGHT) S-TAB - promote current subtree (now bound to M-S-LEFT) I see that TAB normally does a lot of other stuff in addition to rotating states. It would be nice to keep this, but I'm willing to give it up for now. Is this possible to do this without writing a lot of elisp? I know very little elisp; I did find the definition of org-cycle in org.el, but I think hacking it is beyond me (for the amount of effort I'm willing to invest). Thanks, Reid -- IM (Google Chat): reid.priedhorsky@gmail.com (not a valid e-mail) E-mail response time: I check e-mail periodically throughout the day, not continually, so I might not see your note for several hours. Please use IM or phone if you need an immediate response.