|
From: | Ypo |
Subject: | From macros to elisp programming? |
Date: | Mon, 6 Dec 2021 14:42:35 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 |
Hi
I am able to make macros, but I
think I am far away from Lisp programming.
Is there a path to go from macros to elisp programming? For example, the last macro I've made is for transforming the name of some headlines, adding in front of them a part from the previous headline. This is the elisp code of the macro:
#+BEGIN_SRC
(fset 'SanzTema5
(kmacro-lambda-form [?\C-a ?\M-f ?\M-b ?\C- ?\M-f ?\M-f
?\M-f ?\M-f ?\M-f ?\M-f ?\M-f ?\M-f ?\M-f ?\M-w ?\C-c ?\C-n
?\C-a ?\M-f ?\M-b ?\C-y ? ?- ? ?\C-e ?\M-b ?\M-f ?\"] 0 "%d"))
#+END_SRC
Using that code, from these headlines:
*** Sanz Aparicio et al. (2019) "5
Los Motivos Adquiridos, Menéndez Balaña" (pp. 95-118)
**** INTRODUCCIÓN
I get modified the second headline:
*** Sanz Aparicio et al. (2019) "5
Los Motivos Adquiridos, Menéndez Balaña" (pp. 95-118)
**** Sanz Aparicio et al. (2019) "5 Los Motivos Adquiridos -
INTRODUCCIÓN"
Are macros near to elisp programming or they are two different worlds?
Ypo
[Prev in Thread] | Current Thread | [Next in Thread] |