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: Wed, 12 Aug 2015 16:14:10 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c31d10993750051d22dc1e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPcPc-0001P4-NS for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 16:14:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPcPb-0003iB-Mp for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 16:14:12 -0400 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:32914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPcPb-0003hq-F3 for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 16:14:11 -0400 Received: by pabyb7 with SMTP id yb7so21253841pab.0 for ; Wed, 12 Aug 2015 13:14:10 -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 --001a11c31d10993750051d22dc1e Content-Type: text/plain; charset=UTF-8 Glad to be of help! On Wed, Aug 12, 2015 at 11: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 >>> 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 >>> >> >> > --001a11c31d10993750051d22dc1e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Glad to be of help!

On Wed, Aug 12, 2015 at 11:33 AM, Xebar Saram <ze= ltakc@gmail.com> wrote:
Thx Peter=C2=A0

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

z

On Wed, Aug 12, 2015 at 6:22 AM, Peter Salazar <cy= cleofsong@gmail.com> wrote:
Maybe try using <return> instead of RET? Something = like this:

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


On Tu= e, Aug 11, 2015 at 1:45 PM, Xebar Saram <zeltakc@gmail.com> = wrote:
Hi guys

<= /div>
im trying to switch between C-RET and M-RET (i use M-ret alot mor= e 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-head= ing)
(define-key org-mode-map (kbd "M-RET") 'org-in= sert-heading-respect-content)
)=C2=A0

<= div>any ideas what im doing wrong? after reloading emacs C-RET still defaul= ts to=C2=A0org-insert-heading-respect-content

best=

Z



--001a11c31d10993750051d22dc1e--