From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: switch M-RET and C-RET in org mode with no sucess Date: Tue, 11 Aug 2015 23:22:21 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133d940068486051d14ba62 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPMcR-0001OE-15 for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 23:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPMcQ-0003YU-5S for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 23:22:22 -0400 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:36071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPMcP-0003XY-TE for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 23:22:22 -0400 Received: by pdco4 with SMTP id o4so2254680pdc.3 for ; Tue, 11 Aug 2015 20:22:21 -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 --001a1133d940068486051d14ba62 Content-Type: text/plain; charset=UTF-8 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 > success 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 defaults > to org-insert-heading-respect-content > > best > > Z > --001a1133d940068486051d14ba62 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Maybe try using <return> instead of RET? Something l= ike this:

(define-key org-mode-map (kbd "<C= -return>") 'org-insert-heading)


On Tue, Aug 11, = 2015 at 1:45 PM, Xebar Saram <zeltakc@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Hi guys

i= m 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 success in = doing so

this is what i have so far

=
(with-eval-after-load "org"=C2=A0
(defi= ne-key org-mode-map (kbd "C-RET") 'org-insert-heading)
<= div>(define-key org-mode-map (kbd "M-RET") 'org-insert-headin= g-respect-content)
)=C2=A0

any ide= as what im doing wrong? after reloading emacs C-RET still defaults to=C2=A0= org-insert-heading-respect-content

best
=
Z

--001a1133d940068486051d14ba62--