From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mp10.migadu.com ([2001:41d0:2:bcc0::])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
by ms5.migadu.com with LMTPS
id aHq/K8yYjWKfeQAAbAwnHQ
(envelope-from )
for ; Wed, 25 May 2022 04:47:40 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
by mp10.migadu.com with LMTPS
id sPHEKsyYjWIrYgAAG6o9tA
(envelope-from )
for ; Wed, 25 May 2022 04:47:40 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by aspmx1.migadu.com (Postfix) with ESMTPS id 14F49ADA2
for ; Wed, 25 May 2022 04:47:40 +0200 (CEST)
Received: from localhost ([::1]:40046 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1nth3i-0003aY-Rc
for larch@yhetil.org; Tue, 24 May 2022 22:47:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42320)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1ntYN9-0002T2-CM
for emacs-orgmode@gnu.org; Tue, 24 May 2022 13:31:08 -0400
Received: from vxsys-smtpclusterma-03.srv.cat ([46.16.60.200]:58539)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1ntYN4-0007UN-Ss
for emacs-orgmode@gnu.org; Tue, 24 May 2022 13:31:06 -0400
Received: from [192.168.0.97] (unknown [5.225.20.86])
by vxsys-smtpclusterma-03.srv.cat (Postfix) with ESMTPSA id 751B82D285
for ; Tue, 24 May 2022 19:30:56 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=srv.cat; s=mamail;
t=1653413456; bh=JqHYTe2aL/YqAiJGp1IMCLfZVzzcHSqhBHAmAhAz8xo=;
h=Date:To:Subject:From:From;
b=GHf4VKu2hYNFn4vUXMz9pxXltkdrnxuzFah3hQnLmFD8qveWGDpCfksC0hFfcxW8k
mtxTuRx4YQNev5A8Ik+2UEH6WdxxEhjrFllXyurtgG+LImX5I2Yr0gjKreJFIfB0Un
ItU/en5OrmeDrHifZiaC0zgkXLimjkSBV+Yzu/HDQ+dtCn/Fu0u7M0hN23aX6qgEc0
uLeI3LdYToViZGuZCvbtYeB2P6jLP33qy9Ny6rfvzj3l+1pUEBnJWbwYhBI4q5+oEA
W927d2QlCf8NDy7AQX8I3mOkkI79RefigxcCIUA9+dPVYtdcakA14a7o1ifpD8qzar
aHfzqxshZ4WKg==
Content-Type: multipart/alternative;
boundary="------------WIHgvD6FiojXn1Vyv96brEI4"
Message-ID: <9776a3ba-8adc-88a6-ee09-3da03cc0c05b@serviplast.net>
Date: Tue, 24 May 2022 19:30:40 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
To: Org-mode
Subject: Re: Help with my first elisp
Content-Language: en-GB
From: Kepa Diez
Received-SPF: pass client-ip=46.16.60.200; envelope-from=kepa@serviplast.net;
helo=vxsys-smtpclusterma-03.srv.cat
X-Spam_score_int: -14
X-Spam_score: -1.5
X-Spam_bar: -
X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, FAKE_REPLY_A1=0.384, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Mailman-Approved-At: Tue, 24 May 2022 22:46:39 -0400
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode"
X-Migadu-Flow: FLOW_IN
X-Migadu-To: larch@yhetil.org
X-Migadu-Country: US
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
s=key1; t=1653446860;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:mime-version:mime-version:
content-type:content-type:list-id:list-help:list-unsubscribe:
list-subscribe:list-post:dkim-signature;
bh=JqHYTe2aL/YqAiJGp1IMCLfZVzzcHSqhBHAmAhAz8xo=;
b=kXdS9xApwmvHVEAHG0wZbyxLzWL9BOe6jKjK7sStbpe2/edoeP90bEvcueq2b/5lg7QXnd
mhrBDVhEa30qcD2TmBLOH1i5Og2ULOI9HGMSYqEurfCvqLweOsqcqZ9scnrtdcZc38vk5A
Na+A0/TQ/j0BSjQXTp0W1I1VxI8EPN4ILrwNO/xDhXCj4uO6pGbR9yU9ePbdut8NP1tbzg
d7vOy/FwkjRzn9Lg4t1b+zmAw8p+7lnN920lTsQxnJmNbvRJwzXP4CTd1YkjA+66I18nqR
h9K6umXQQrJgW8Nj1QPIh3bdh3lvkjqXfL/BwVe5vVWJZ/Mcau+SbUqxC7i46Q==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653446860; a=rsa-sha256; cv=none;
b=MJNusQOkE0jJanV5AGGpLzxUZEd2eF4TLKc4gT62Hz+haLL/zTsLyMcHMmGccAus5v5ILo
uK1WBmiUujwGawaANSdeohgMWx26KfMRwE64Gkqn9J7+NXTg4g6ACcttndrDWbIgoDOTev
JjTQfFMCe9NzjLirfo8mNUM+0kMG5a7SX3p73pMf/DExrSB9soIEK2nGCMNkCpc8XnLYv0
9XVzXondYxOHyOO4Tof3BtT7YLWICSZNO4bkwCQ23+93DKCfk5c0Zx/kBf1YxMIkic17eK
OZfVjWcYz9p2iXFaX9zqzzF1BGRavr1WtSdynt26xOVOd0nnp3lMONN888N6mQ==
ARC-Authentication-Results: i=1;
aspmx1.migadu.com;
dkim=pass header.d=srv.cat header.s=mamail header.b=GHf4VKu2;
dmarc=none;
spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -2.54
Authentication-Results: aspmx1.migadu.com;
dkim=pass header.d=srv.cat header.s=mamail header.b=GHf4VKu2;
dmarc=none;
spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Queue-Id: 14F49ADA2
X-Spam-Score: -2.54
X-Migadu-Scanner: scn1.migadu.com
X-TUID: R9zv36aLkl1v
This is a multi-part message in MIME format.
--------------WIHgvD6FiojXn1Vyv96brEI4
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
> maybe use something like
>
> >/> (define-key mh-letter-mode-map/
> >/> (kbd "C-c s")/
> >/> 'ggm-mh-sentaddrs-completion)/
>
> but, using whatever the name of the logos-focus mode map, pointing at
> your functions?
Hi Greg
I think "logos" doesn't have a map, is it possible?
> On Mon, May 23, 2022 at 09:46:09AM -0700, Greg Minshall wrote:
> >/Ypo,/
> >//
> >/> (defun salto ()/
> >/> (interactive)/
> >/> (if posicion 1/
>
> You are comparing the value of posicion to 1?
>
> Then it should probably be "(if (= posicion 1) ...)" or
> "(if (equal posicion 1) ...)" or something like that.
>
> Cheers
> --
> t
Thanks, Tomas. It seems the "if" part works, now I use my elisp just
with the spacebar :-)
(add-hook 'logos-focus-mode-hook #'(lambda ()
(defvar posicion
"Position where is the cursor.")
(defun focusPointStart ()
(interactive)
(next-line 1)
(beginning-of-visual-line)
(forward-char 6)
(setq posicion 1)
)
(defun focusPointInter ()
(interactive)
(forward-char 23)
(setq posicion 2)
)
(defun focusPointEnd ()
(interactive)
(end-of-visual-line) ;;C-e
(backward-char 7)
(setq posicion 3)
)
(defun focusJump ()
(interactive)
(if (equal posicion 1)
(focusPointInter)
(if (equal posicion 2)
(focusPointEnd)
(if (equal posicion 3)
(focusPointStart)))))
(define-key global-map (kbd "SPC") #'focusJump)
))
--------------WIHgvD6FiojXn1Vyv96brEI4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
maybe use something like
>> (define-key mh-letter-mode-map
>> (kbd "C-c s")
>> 'ggm-mh-sentaddrs-completion)
but, using whatever the name of the logos-focus mode map, pointing at
your functions?
Hi Greg
I think "logos" doesn't have
a map, is it possible?
On Mon, May 23, 2022 at 09:46:09AM -0700, Greg Minshall wrote:
> Ypo,
>
> > (defun salto ()
> > (interactive)
> > (if posicion 1
You are comparing the value of posicion to 1?
Then it should probably be "(if (= posicion 1) ...)" or
"(if (equal posicion 1) ...)" or something like that.
Cheers
--
t
Thanks, Tomas. It seems the "if" part works, now I use my elisp
just with the spacebar :-)
(add-hook 'logos-focus-mode-hook #'(lambda ()
(defvar posicion
"Position where is the cursor.")
(defun focusPointStart ()
(interactive)
(next-line 1)
(beginning-of-visual-line)
(forward-char 6)
(setq posicion 1)
)
(defun focusPointInter ()
(interactive)
(forward-char 23)
(setq posicion 2)
)
(defun focusPointEnd ()
(interactive)
(end-of-visual-line) ;;C-e
(backward-char 7)
(setq posicion 3)
)
(defun focusJump ()
(interactive)
(if (equal posicion 1)
(focusPointInter)
(if (equal posicion 2)
(focusPointEnd)
(if (equal posicion 3)
(focusPointStart)))))
(define-key global-map (kbd "SPC") #'focusJump)
))
--------------WIHgvD6FiojXn1Vyv96brEI4--