Am Mittwoch, den 25. Mai 2022 um 10:24:01 Uhr (+0200) schrieb to...@tuxteam.de:
>
> Just to avoid confusion: Emacs Lisp does distinguish case. Traditional
> Lisp doesn't. I know you know, but people could misunderstand the above.
Yes, that was a bit imprecise ;-)
Best,
Orm
On Wed, May 25, 2022 at 08:35:19AM +0200, Orm Finnendahl wrote:
> Hi,
>
> Am Dienstag, den 24. Mai 2022 um 19:30:40 Uhr (+0200) schrieb Kepa Diez:
> > (defun focusJump ()
> > (interactive)
> > (if (equal posicion 1)
> > (focusPointInter)
> > (if (equal posicion 2)
> >
Hi,
Am Dienstag, den 24. Mai 2022 um 19:30:40 Uhr (+0200) schrieb Kepa Diez:
> (defun focusJump ()
> (interactive)
> (if (equal posicion 1)
> (focusPointInter)
> (if (equal posicion 2)
> (focusPointEnd)
> (if (equal posicion 3)
> (focusPointStart)
maybe
Ypo,
> > but, using whatever the name of the logos-focus mode map, pointing at
> > your functions?
...
> I think "logos" doesn't have a map, is it possible?
certainly possible (i don't use logos).
in fact,
https://gitlab.com/protesilaos/logos/-/blob/main/logos.el
has the lines
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
On Tue, May 24, 2022 at 07:32:31PM +0200, Ypo wrote:
[...]
> Thanks, Tomas. It seems the "if" part works, now I can use my elisp just
> with the spacebar :-)
Glad it worked :)
Cheers
--
t
signature.asc
Description: PGP signature
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
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.
Ypo,
> (defun salto ()
> (interactive)
> (if posicion 1
> (posicion2)
> (if posicion 2
> (posicion3)
> (if posicion 3
> (posicion1)
your function =salto= may be using =if= incorrectly. try marking that
=defun= and hitting TAB to justify it. my guess is,
Thanks, Greg
* Now I am able to run my script every time I am in logos-focus mode :D
* But my keys don't get to be "normal" after I get out of logos-focus
mode.
This is how my code is evolving (the "conditional part" is not working yet):
(add-hook 'logos-focus-mode-hook #'(lambda ()
Ypo,
> Additional problem: I don't know how to recover keys 1, 2 and 3 to
> their normal functioning, right now I can't type 1, 2 or 3 on my
> Emacs. xD
you have, e.g.,
> (define-key global-map (kbd "1") #'posicion1)
> (define-key global-map (kbd "2") #'posicion2)
> (define-key global-map (kbd
Hi
After thinking about learning elisp for years, today I've tried my first
script. First I made some macros that worked as I intended, and then
using this tutorial of Protesilaos I was able to transform those macros
into elisp code.
12 matches
Mail list logo