From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: switch M-RET and C-RET in org mode with no sucess Date: Sat, 15 Aug 2015 08:57:49 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQby3-0006aW-N2 for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 09:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQby2-0000zI-Mi for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 09:57:51 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:34346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQby2-0000xD-EW for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 09:57:50 -0400 Received: by lbbtg9 with SMTP id tg9so59694733lbb.1 for ; Sat, 15 Aug 2015 06:57:49 -0700 (PDT) In-Reply-To: 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: Xebar Saram Cc: org mode , Peter Salazar http://ergoemacs.org/emacs/emacs_key_notation_return_vs_RET.html Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Wed, Aug 12, 2015 at 10:33 AM, Xebar Saram wrote: > Thx Peter > > that did the trick, never know when to use RET or return :) > > z > > On Wed, Aug 12, 2015 at 6:22 AM, Peter Salazar > wrote: >> >> Maybe try using instead of RET? Something like this: >> >> (define-key org-mode-map (kbd "") 'org-insert-heading) >> >> >> On Tue, Aug 11, 2015 at 1:45 PM, Xebar Saram wrote: >>> >>> Hi guys >>> >>> im trying to switch between C-RET and M-RET (i use M-ret alot more but >>> C-RET is much more accessible for me :)) but i dont seem to have any su= ccess >>> in doing so >>> >>> this is what i have so far >>> >>> (with-eval-after-load "org" >>> (define-key org-mode-map (kbd "C-RET") 'org-insert-heading) >>> (define-key org-mode-map (kbd "M-RET") >>> 'org-insert-heading-respect-content) >>> ) >>> >>> any ideas what im doing wrong? after reloading emacs C-RET still defaul= ts >>> to org-insert-heading-respect-content >>> >>> best >>> >>> Z >> >> >