From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: switch M-RET and C-RET in org mode with no sucess Date: Wed, 12 Aug 2015 18:33:42 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1139d116941ab6051d1ef18a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPY2G-0005qp-5u for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 11:33:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPY2B-0006Pj-H9 for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 11:33:48 -0400 Received: from mail-yk0-x235.google.com ([2607:f8b0:4002:c07::235]:35203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPY2B-0006Pe-Cw for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 11:33:43 -0400 Received: by ykdz80 with SMTP id z80so17044143ykd.2 for ; Wed, 12 Aug 2015 08:33:42 -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: Peter Salazar Cc: org mode --001a1139d116941ab6051d1ef18a Content-Type: text/plain; charset=UTF-8 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 >> 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 >> > > --001a1139d116941ab6051d1ef18a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thx Peter=C2=A0

that did the trick, nev= er know when to use RET or return :)

z
=

On Wed, Aug 12, 2= 015 at 6:22 AM, Peter Salazar <cycleofsong@gmail.com> wr= ote:
Maybe try using <= ;return> instead of RET? Something like this:

(d= efine-key org-mode-map (kbd "<C-return>") 'org-insert-h= eading)


On Tue, Aug = 11, 2015 at 1:45 PM, Xebar Saram <zeltakc@gmail.com> wrote:<= br>
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"=C2=A0
(= define-key org-mode-map (kbd "C-RET") 'org-insert-heading)
(define-key org-mode-map (kbd "M-RET") 'org-insert-he= ading-respect-content)
)=C2=A0

any= ideas what im doing wrong? after reloading emacs C-RET still defaults to= =C2=A0org-insert-heading-respect-content

best

Z


--001a1139d116941ab6051d1ef18a--