Nice to have you here on this talk. @@ -16,7 +18,7 @@ Just as a side note, this presentation that I'm going to share with you
-about my work on Corfu and Jasnipit. +about my work on Corfu and Yasnippet.
I've prepared that on Org Mode @@ -45,11 +47,16 @@ So just a short outline, my motivation,
step-by-step of the things that I've been investigating,
-and some takeaways. So my motivation, yeah, snippet is old. +00:00:49.960 --> 00:00:52.515 +and some takeaways. + +NOTE Motivation + +00:00:52.516 --> 00:00:55.919 +So my motivation, yasnippet is old.
-So I've tried another, I've tried Temple +So I've tried another. I've tried Tempel
and other template management packages, @@ -58,7 +65,7 @@ and other template management packages, but it was really not my cup of tea. So mainly why?
-Mainly because I have a nice base of VR snippets +Mainly because I have a nice base of yasnippets
I have generated for my needs. @@ -78,53 +85,62 @@ And of course, migration counts as a cost.
I've been using Company as my completion point function GUI for years,
-but with the time coming in features and so on it +00:01:32.640 --> 00:01:38.167 +but with the time coming in features and so on, + +00:01:38.168 --> 00:01:44.359 +it was not as easy to set up as I wanted for my needs. + +00:01:44.360 --> 00:01:47.181 +So I had been working,
-was it's was not as easy to set up as I wanted for my needs +00:01:47.182 --> 00:01:49.839 +I've been playing with Eglot already some time
-so I had been working I've been playing with Eaglet already some time for a language server protocol +00:01:49.840 --> 00:01:53.119 +for a language server protocol.
-I had read about how easy it was to integrate with Corfu +I had read about how easy it was to integrate with Corfu,
-which was really nice and I had given it a try, +which was really nice, and I had given it a try,
+00:02:02.840 --> 00:02:10.250 but I'm using both graphical user interface mode in Emacs
+00:02:10.251 --> 00:02:11.000 and text mode,
-and for text mode you need a corporate terminal, +00:02:11.001 --> 00:02:13.042 +and for text mode you need corfu-terminal,
-which was yet another package that I don't download. +00:02:13.043 --> 00:02:16.399 +which was yet another package that I didn't download.
Well, and I didn't really find a quick way
-to get rid of company to get just snippet. +to get rid of company to get yasnippet.
So at the end, when, at the beginning,
-when I was using Corfu and Eglot, I also needed to load a company +00:02:26.680 --> 00:02:30.107 +when I was using Corfu and Eglot, + +00:02:30.108 --> 00:02:33.959 +I also needed to load company
-to have a snippet support, +to have yasnippet support,
which was really like sort of weird
-because I wanted to get rid of, of your snippet. +because I wanted to get rid of yasnippet.
Anyhow, while I try now, I'm following the mailing list, @@ -136,7 +152,7 @@ the development mailing list, and I got interested when I heard something about
-TTI charge frames being announced for master. +TTY child frames being announced for master.
That would mean less packages to download @@ -145,7 +161,7 @@ That would mean less packages to download because I thought I could get rid of Corfu,
-and I wanted to try if I could get rid of Corfu terminal +and I wanted to try if I could get rid of corfu-terminal
and run Corfu without that. @@ -157,43 +173,48 @@ So, there were some hints there in that mailing list that made it interesting for me.
-And at the end, I'm also like a why not trying man, +And at the end, I'm also like a "why not try"ing man,
-so I said let's give it a try. +so I said, let's give it a try. + +NOTE My requirements
My requirements, I'm working always on a new Emacs,
-a decently new Emacs, normally from Master Vanilla. +a decently new Emacs, normally from master, vanilla, + +00:03:36.760 --> 00:03:41.209 +completely vanilla, and I don't have any extras
-completely Vanilla and I don't have any extras like Doom or things like that. +00:03:41.210 --> 00:03:42.559 +like Doom or things like that.
-So I'm only Vanilla. And one of the things +So I'm only vanilla. And one of the things
-that I don't want is that on this Vanilla recent Emacs, +that I don't want is that on this vanilla recent Emacs,
-I don't want a Kung Fu Terminal. I need your snippet. +I don't want a corfu-terminal. I need yasnippet.
I'm basically an old man.
-Old dog does new tricks and snippets must, +Old dog doesn't do new tricks and snippets must,
-in my way of working, must be easy and quick to configure +in my way of working, must be easy and quick to configure,
-and Tempo or others that I've seen are not. +and tempel or others that I've seen are not.
-I don't want any reminiscence of a company in my setup. +I don't want any reminiscence of company in my setup.
And of course, don't forget that I've embraced @@ -205,10 +226,12 @@ the language protocol implementations and basically Eglot. My main focus now is Python and LaTeX,
-and I have PyLSB and TechLab. +and I have pylsp and texlab.
-And I don't want to have to stop using them. +I don't want to have to stop using them. + +NOTE Basic setup: corfu + eglot
So basic setup for Corfu and Eglot. @@ -226,7 +249,7 @@ And actually, I also do something somehow naughty, which is to set this variable,
-the Corfu auto variable to true, +the corfu-auto variable to true,
although I know it's not recommended, blah, blah, blah. @@ -234,53 +257,55 @@ although I know it's not recommended, blah, blah, blah.
But I use that because I'm a bit lazy in that. +NOTE Looking at completion-at-point functions +
So next step was looking at completion at point functions.
-So the information there if you go through the scatter +So the information there, if you go through, is scattered
+00:05:10.480 --> 00:05:13.739 and sometimes a bit cryptic.
+00:05:13.740 --> 00:05:16.599 At the end I came up with something like the thing
that you see there on the screen.
-So it's a function for just completion point +It's a function for yas-completion-at-point.
-so I need my list of keywords +I need my list of keywords,
-so that I'm going to be talking later +so that I'm going to be talking later,
-and I have my bounds which is normally a word +and I have my bounds, which is normally a word,
-and from that I get the start and the end +and from that, I get the start and the end
-of the of the thing that I want to +00:05:37.120 --> 00:05:40.879 +of the thing that I want to
-that I want to be my seed for looking and bringing up Corfu +00:05:40.880 --> 00:05:47.319 +be my seed for looking and bringing up Corfu,
-and of course I need some completion properties here +00:05:47.320 --> 00:05:52.599 +and of course, I need some completion properties here.
+00:05:52.600 --> 00:05:55.719 This looked like this is what you need to do,
but I had to dig quite deep
-to create a JavaScript keyword test +to create a yasnippet keyword test
and to understand the completion props. @@ -288,11 +313,11 @@ and to understand the completion props.
And as an update of what I've been doing in the last weeks,
-I've created a bound of things +00:06:11.760 --> 00:06:17.606 +I've created a bound of things at point for me
-that point for me with a different thing +00:06:17.607 --> 00:06:18.679 +with a different thing
that doesn't skip over non-blank characters, @@ -301,7 +326,7 @@ that doesn't skip over non-blank characters, that only skips over non-blank characters.
-Why? Because Word was confusingly tech, +Why? Because 'word was confusing LaTeX,
because the backslash, @@ -309,50 +334,52 @@ because the backslash,
like in the example for the teletype text,
-was not taken into account by Word. +00:06:35.000 --> 00:06:37.999 +was not taken into account by 'word.
+00:06:38.000 --> 00:06:39.959 So I had to create my own one,
-which was a bunch of thing at point, +which was a bounds-of-thing-at-point,
and then my thing is non-blanks.
+NOTE Making my own (basic) c-a-p-f for yasnippet: the completion properties + +00:06:44.880 --> 00:06:51.179 Completion at point properties, what are they?
+00:06:51.180 --> 00:06:56.039 They allow Emacs to know how to handle the information
+00:06:56.040 --> 00:06:58.899 for a specific completion time.
+00:06:58.900 --> 00:07:03.239 So you normally will have an annotation,
-which then can disappear if you use NerdIconScoreFull. +00:07:03.240 --> 00:07:08.519 +which then can disappear if you use nerd-icons-corfu,
which is what I'm doing currently,
+00:07:11.840 --> 00:07:17.900 but I keep it commented just in case I get tired of Corfu
+00:07:17.901 --> 00:07:20.000 and I want to have my completion function.
-Then the company kind is actually not something +00:07:20.001 --> 00:07:24.959 +Then the :company-kind is actually not something
+00:07:24.960 --> 00:07:30.999 that comes from the company package, but does not require.
-And that's going to allow NerdEye Conscorfu to identify +And that's going to allow nerd-icons-corfu to identify
and put the right icon there in the completion list, @@ -373,21 +400,23 @@ is that this is a snippet keyword. These two lines, either line,
-tell you that this is a snippet keyword. +tell you that this is a snippet keyword,
-And that it should be added to the other completions +and that it should be added to the other completions
+00:08:05.280 --> 00:08:10.899 that you already have in your list.
-Problems looking now next step +NOTE Getting yas-kw-list right: What do I want? + +00:08:10.900 --> 00:08:15.479 +Problems. Looking... Now, next step,
+00:08:15.480 --> 00:08:18.479 once I had the completion props
+00:08:18.480 --> 00:08:21.439 which was relatively easy was to go
@@ -397,10 +426,13 @@ and get the keyword list right. I've been looking at pre-existing solutions
-like for example how the menu +like, for example, how the menu + +00:08:29.320 --> 00:08:32.539 +is built in by yasnippet
-is built in by your snippet and it looked a bit like Mission Impossible. +00:08:32.540 --> 00:08:34.399 +and it looked a bit like Mission Impossible,
because the approach by all the things @@ -408,10 +440,10 @@ because the approach by all the things
that I have seen and I have examined
+00:08:43.200 --> 00:08:48.659 is to get the keys and the names
+00:08:48.660 --> 00:08:50.799 and then further process them.
@@ -424,99 +456,101 @@ At the end, if I use my own snippets, I'm going to be using something
-I would call meaningful keys for them +I would call meaningful keys for them,
-or at least meaningful for these keys are meaningful for me +or at least meaningful for... These keys are meaningful for me,
-and I try not to repeat them +and I try not to repeat them,
because it makes little sense to repeat a keyword.
-So why not center everything around the keys only +So why not center everything around the keys only,
and can that help simplify my code? +NOTE Diving in yasnippet +
-So I started to dive into your snippet +So I started to dive into yasnippet
and I found a lot of useful semi-hidden functions there.
-I discovered that getting the list +I discovered that getting the list,
the list of keys for a given mode was not that difficult.
-And at the end what I started doing +And at the end, what I started doing
-is get all the snipple tables used by a major mode +00:09:40.080 --> 00:09:43.399 +is get all the snippet tables used by a major mode
+00:09:43.400 --> 00:09:47.999 and get the lists of the keys that you have in each table.
+00:09:48.000 --> 00:09:50.375 Sometimes the list is empty
+00:09:50.376 --> 00:09:54.319 so it's going to return a nil and that you have to discard.
+00:09:54.320 --> 00:09:57.559 When you're using structured snippets
+00:09:57.560 --> 00:10:02.479 like snippets and submenus and so on
-to get a structured menu, +00:10:02.480 --> 00:10:06.399 +to get a structured menu.
-you also get some non-strings that you need to filter out +00:10:06.400 --> 00:10:09.834 +You also get some non-strings that you need to filter out
+00:10:09.835 --> 00:10:15.039 in order to get a workable keyword list.
+00:10:15.040 --> 00:10:21.799 At the end of the day, what I had was something like this.
+00:10:21.800 --> 00:10:29.519 I have, for a mode, I went through all modes.
-through all modes associated to that and then I went +00:10:29.520 --> 00:10:38.799 +through all modes associated to that, and then I went,
+00:10:38.800 --> 00:10:42.480 I got my results from all the tables that I had
-for a for a given time for a given table +for a given time, for a given table.
-so what you do is you get your the tables +So what you do is you get the tables
-that are associated to a mode because surprise surprise +that are associated to a mode, because, surprise, surprise,
-Some modes have more than one table, +some modes have more than one table.
-and then what you do is you filter out all non strings +And then what you do is you filter out all non strings
from each of the keys list that you have for each table.
+00:11:07.720 --> 00:11:12.379 So as you see, it's a 1, 2, 3, 4, 5, 6, 7 liner,
+00:11:12.380 --> 00:11:14.319 which was not too much.
@@ -529,104 +563,116 @@ I sent a pull request to include this as a public function in Yasnipit
-because it might be nice to have it in a packet +because it might be nice to have it in the package
in order to do this kind of things. +NOTE Fine-tuning: adding cape +
-So fine-tuning I just adding a yes completion +So fine-tuning. Just adding a yas completion
-to the completion point functions was not enough +to the completion point functions was not enough.
-I don't really know +I don't really know,
-but exclusive node didn't seem to work how I wanted +but :exclusive no didn't seem to work how I wanted
-so I needed to escape sorry yeah I was saying I was getting rid of packages +00:11:51.200 --> 00:11:54.549 +so I needed to escape... Sorry. Yeah.
+00:11:54.550 --> 00:11:57.399 +I was saying I was getting rid of packages, + +00:11:57.400 --> 00:12:00.279 and I had to add one package
-in order to get a function which is very very nice +00:12:00.280 --> 00:12:04.479 +in order to get a function, which is very, very, nice,
-and which is part of the cape function of the cape package +and which is part of the cape function of the cape package,
-and that's cape cap super. +and that's cape-capf-super.
-So at the end using that you define an alias +So at the end, using that, you define an alias,
-which for that where you use cape cap super +which, for that, where you use cape-capf-super
-to have a list of what you want +to have a list of what you want...
-so in this case for example for the demo +So in this case, for example, for the demo + +00:12:29.080 --> 00:12:31.419 +I'm going to make, I'm using yas completion
-I'm going to make I'm using yes completion +00:12:31.420 --> 00:12:36.172 +and then the elisp-completion-at-point function
-and then the elisp completion point function provided by Emacs. +00:12:36.173 --> 00:12:37.719 +provided by Emacs.
-I combine them using cape cap super +I combine them using cape-capf-super,
-and with that I create a completion point +and with that, I create a completion point,
-a new completion point function which I call cape list mode +a new completion point function which I call cape-lisp-mode,
-and then I add this alias to the completion functions list +and then I add this alias to the completion functions list, + +00:12:58.520 --> 00:13:03.803 +and with that, it is enough. + +NOTE Automatic snippet expansion
-and with that it is enough snippet expansion +00:13:03.804 --> 00:13:05.719 +Snippet expansion.
-if you want to have your snippets expanded automatically, +00:13:05.720 --> 00:13:13.839 +If you want to have your snippets expanded automatically,
+00:13:13.840 --> 00:13:27.999 you have to add an exit function to the, I'm sorry,
-to the completion properties +to the completion properties.
-yet another functionality you have to add +Yet another functionality you have to add.
-and to avoid this automatic selection to be too eager +And to avoid this automatic selection to be too eager,
-you need to add this set corfu +00:13:39.200 --> 00:13:47.973 +you need to add this setq corfu-on-exact-match to nil
-on exact match to nil because otherwise -
-you will always get the snippet expanded +00:13:47.974 --> 00:13:51.839 +because otherwise, you will always get the snippet expanded,
-even if you don't want it Basically why? +even if you don't want it. Basically, why?
-Basically because this would be suboptimal +Basically, because this would be suboptimal
because the key can appear as part of a variable name. +NOTE Themes +
Another nice thing, I'm also creating my own themes. @@ -640,15 +686,15 @@ that only cover the modes that I use and for that I have my own theme creator fork
-from the original team creator. +from the original theme creator.
-In my personal work that I'm running at home, +00:14:26.960 --> 00:14:29.292 +In my personal fork that I'm running at home,
+00:14:29.293 --> 00:14:33.859 I only have the faces for the modes I use.
+00:14:33.860 --> 00:14:38.159 I don't want to overload the thing
@@ -658,7 +704,7 @@ with too much different things. Looking at this, I really didn't need, as you will see now,
-I don't need to add anything to my themes +I don't need to add anything to my themes,
because the default faces for Corfu @@ -666,23 +712,28 @@ because the default faces for Corfu
adapt quite well to most of the themes.
-So if I go back to my checklist decently remax yes +NOTE My check-list + +00:14:58.320 --> 00:15:01.478 +So if I go back to my checklist, + +00:15:01.479 --> 00:15:02.839 +decently new Emacs, yes,
-compiled the one you'll see +compiled. The one you'll see
-for the for in the demo I'm doing is a master +in the demo I'm doing is a master
compiled the day before yesterday
-so and I don't need Corfu terminal there. +and I don't need corfu-terminal there.
-I need your snippet, +I need yasnippet,
and you're going to see that in a second @@ -694,25 +745,30 @@ with a couple of snippets that I can expand here. I don't want any reminiscence of a company in my setup,
-and there's none. Well, actually, company kind is there +and there's none. Well, actually, :company-kind is there
-you see the company there +you see the company there,
-but it isn't if I buy companies strictly speaking +but it isn't defined by company strictly speaking,
-and for I don't want I need Eglot integration +and for... I don't want... I need Eglot integration + +00:15:44.680 --> 00:15:48.583 +which I will also be showing you.
-which I will also be showing you. Takeaways from all this, +NOTE Takeaways + +00:15:48.584 --> 00:15:50.400 +Takeaways from all this,
if you accept the extra burden
-of Corfu terminal for Emacs 30 or earlier Emacs 30s, +of corfu-terminal for Emacs 30 or earlier Emacs 30s,
it's not too difficult to get this set up running. @@ -742,55 +798,54 @@ I've learned a lot about computational functions in the process, which is, something that is always nice to learn new things
-and the Nerd Icons Corfu makes the +and the nerd-icons-corfu makes the...
-at least at this point in time I might get tired of it +at least, at this point in time... I might get tired of it,
-but at this point in time it makes +but at this point in time, it makes
-a makes a very nice overall look +00:16:50.400 --> 00:16:58.039 +a very nice overall look and feel for Emacs.
-and look and feel for for Emacs. +NOTE Requests (to whom it may concern)
-requests to whom it may concern cape has nice features +Requests (to whom it may concern): cape has nice features
-that maybe could make their way into emacs +that maybe could make their way into emacs.
-i'm thinking basically about this cape super fun +00:17:06.280 --> 00:17:08.064 +I'm thinking basically about
-uh super function super cape function functionality +00:17:08.065 --> 00:17:12.399 +this super cape functionality
-which is very nice and overcomes the problem of linking +which is very nice, and overcomes the problem of linking,
-and this exclusive and all this kind of things +and this :exclusive and all this kind of things
that we have currently in Corfu
-with the computational point functions. +with the completion-at-point functions.
-Corfu is also really nice to have and it's not too big +Corfu is also really nice to have, and it's not too big.
-so is there any possibility +So is there any possibility
that it makes its way into Emacs?
-Please keep Yarn Snippet alive. +Please keep yasnippet alive.
I'm not saying here that my pull request should be there, @@ -799,43 +854,45 @@ I'm not saying here that my pull request should be there, but it would be nice if someone took a look
-and made it part of Yarn Snippet. +and made it part of Yasnippet.
-And PS, currently on master, +And P.S., currently on master,
+00:18:01.800 --> 00:18:04.292 there's a lot of semantic highlighting going on,
+00:18:04.293 --> 00:18:07.125 which is very, very nice. No criticism on that.
-but you may need to add to your snippet hook +00:18:07.126 --> 00:18:12.417 +But you may need to add to your snippet hook
-this simple local value for ElixirFontify semantically +00:18:12.418 --> 00:18:25.039 +this simple local value for elisp-fontify-semantically,
-because at least in my case I felt that +because at least in my case, I felt that
-the face were a bit too pushy +the faces were a bit too pushy,
-so I had to make a snippet mode +so I had to make the snippet mode
+00:18:37.334 --> 00:18:43.579 use the old Emacs Lisp fontification.
-That's what we want to talk about. +00:18:43.580 --> 00:18:46.279 +This would be my talk.
Any initial reactions to this? There's a question here. +NOTE Q: Did you try yasnippet-capf? If so, what did you miss from it that this approach has? Thanks! https://github.com/elken/yasnippet-capf +
-Someone asked, did you try Jasnepet Cup? +Someone asked, did you try yasnippet-capf?
If so, what did you miss from this approach? I tried that. @@ -843,10 +900,10 @@ If so, what did you miss from this approach? I tried that.
And it's not that I missed anything.
+00:19:11.240 --> 00:19:15.839 It was more or less that I wanted to do it myself.
+00:19:15.840 --> 00:19:24.159 So I wanted to see what was behind it. That's my answer.
@@ -858,6 +915,8 @@ but I try to keep learning. So, this was a nice objective
to learn a bit more about Emacs. And now, just a second. +NOTE A small demo +
Now, a small demo. This is the interaction. @@ -880,7 +939,7 @@ And what you see here is that I have two snippets appearing and then some variables.
-So, I could go for def one or if I want a key map, for def key map, +So, I could go for defun or if I want a key map, for def-keymap,
which would be something like this. @@ -889,46 +948,49 @@ which would be something like this. And then when I press enter, I get directly into the map
-and I could say like, Show off mob. +and I could say like, show off map.
-Then it sets out directly a prefix T, +Then it sets out directly a :prefix t,
which is something that I asked for in Emacs master.
-So with prefix T, for those who prefix it true, +So with :prefix t, for those who prefix it true,
for those who don't know it,
-it makes integrating this into keymaps in use package much easier. +00:20:41.400 --> 00:20:49.042 +it makes integrating this into keymaps + +00:20:49.043 --> 00:20:52.125 +in use-package much easier.
-So the next thing would be +00:20:52.126 --> 00:20:54.167 +So the next thing would be,
-I would like to write a description +00:20:54.168 --> 00:20:56.500 +I would like to write a description,
-like for example a cool show off team up +00:20:56.501 --> 00:21:04.999 +like, for example, a cool show-off keymap,
-and then my keys are my functions and that would be it +and then my keys are my functions, and that would be it.
-but you also have like but also have like this define function +Of course, you also have like this define function.
-and of course you can say that's nice but there's no +And of course you can say, that's nice,
but you're not showing the integration
-with Eglot and you're right. +with Eglot, and you're right.
So I'm going just to open up a small program @@ -937,16 +999,16 @@ So I'm going just to open up a small program that I'm currently developing in Python.
-X is a tool to do things in MP3. +This is a tool to do things in MP3.
-And here I would have like all these things. +And here I would have, like, all these things.
As you see here in the bottom,
-service running, pilot is local, eglot is active. +server is running, file is local, eglot is active.
So I have my eglot stop and then I go down. @@ -960,71 +1022,71 @@ I would go like for it. I would go like add flag.
For example, I would add a flag
+00:22:13.760 --> 00:22:27.859 and I would get a new flag to add here.
-Oops. Of course, this is integrated into Eagle Lord. +00:22:27.860 --> 00:22:33.119 +Oops. Of course, this is integrated into Eglot,
-So I'm getting your information about what I have. +so I'm getting your information about what I have.
-I don't have OS, so I would need to import here, +I could... I don't have os, so I would need to import here,
-but I can go up just to see +but I can go up just to see...
-if I would like to, for example, +If I would like to, for example,
-create a new a regular expression +create a new regular expression,
-I'm getting this information that you see right now on call +I'm getting this information that you see right now on call.
-for I'm getting that from Eglot +I'm getting that from Eglot.
-so you see there's the integration +So you see there's the integration
-with with Eglot too in Python +with Eglot too in Python.
-I have Eglot and as you've seen +I have Eglot, and as you've seen
-I also have the and all these are snippets fine +I also have the... and all these are snippets. Fine.
-more reactions and questions +More reactions and questions?
Because that would be my show off here.
+00:23:54.240 --> 00:24:09.379 Any questions? Any more questions on the pad?
-but anyhow i'm going to try +00:24:09.380 --> 00:24:11.479 +but anyhow I'm going to try,
-i'm going to try your snippet too +I'm going to try yasnippet too
-and i'm going to be answering this question more +and I'm going to be answering this question more
yeah time is good okay fine
-so I would be done if there's no more reactions +so I would be done if there's no more reactions...
-thank you so much You're welcome. +Thank you so much. You're welcome.
If you have any other questions, folks, @@ -1045,34 +1107,36 @@ Oh, I see some questions coming in now. You may go ahead if you like.
-okay fine uh what uh there's someone asking +Okay, fine. There's someone asking: + +NOTE Q: Do special characters in yasnippets work well too? example <FD ?
-what do special characters in your snippets work well too +Do special characters in your snippets work well too?
-what kind of i don't use special characters in the key name +what kind of... I don't use special characters in the key name,
-so in this case everything works quite nicely +so in this case everything works quite nicely,
-and then i'm passing i'm passing the control to your snippets +and then I'm passing, I'm passing the control to yasnippet,
-so if there's any problem in your snippets +so if there's any problem in yasnippet
-with uh special characters +with special characters,
-that i don't know I don't use that as a key. +that, I don't know. I don't use that as a key.
I'm just using for key names.
-I normally use a, I only use letters, but that should work. +I normally use a... I only use letters, but that should work.
I mean, let's, uh, let's give it a trial. @@ -1081,51 +1145,48 @@ I mean, let's, uh, let's give it a trial. Let's kill here. Yes. I don't want, I don't want to touch this.
-Ugh. let's go into this one uh +Ugh. Let's go into this one.
-let's say I'm going to define this for example like this +Let's say I'm going to define this, for example, like this,
-and I'm going to create a new snippet +and I'm going to create a new snippet.
I'm going to create a new snippet
-and use this is for example when you look at this -
-if you if you have the the venue uh the new +and use this. For example, when you look at this,
-sorry the new way of the the new emacs uh +00:26:18.120 --> 00:26:31.042 +if you have the new way of the new Emacs
-semantical highlighting working +00:26:31.043 --> 00:26:37.667 +semantical highlighting working,
-this would be quite cramped this is why i'm using +00:26:37.668 --> 00:26:40.625 +this would be quite cramped. This is why I'm using,
-this is why i said uh the snippet the +00:26:40.626 --> 00:26:44.899 +this is why I said the snippet, the...
-so is this more or less what you're talking about +00:26:44.900 --> 00:26:55.139 +So is this more or less what you're talking about?
+00:26:55.140 --> 00:27:12.579 This is what you're talking about. Snippet. Save the snippet.
-So I'm going to... Snippet, load and put window. +00:27:12.580 --> 00:27:15.479 +Snippet, load and put window.
Enable interaction mode. Yes, I'm going to save.
-And I'm going to save that as FD test. on the file. +00:27:21.280 --> 00:27:31.059 +And I'm going to save that as fd test in the file.
+00:27:31.060 --> 00:27:41.479 No, I'm going to save this. Load. Load input window.
@@ -1135,16 +1196,19 @@ I'm going to put this in Emacs Lisp mode. I want to save it. No. I'm going to write that directly into Emacs Lisp mode.
-going to go back into scratch buffer +Going to go back into scratch buffer,
-and here I have it and we have it here but anyhow +and here I have it. We have it here. But anyhow... + +00:28:43.080 --> 00:28:46.934 +And I'm just going to try to see, if I feel like...
-and I'm just going to try to see if I feel like empty of course +00:28:46.935 --> 00:28:52.663 +Empty? Of course, there's only one.
-there's only one it will not show in Corfu, +00:28:52.664 --> 00:28:58.839 +It will not show in Corfu.
but I mean, I don't have any problems @@ -1185,17 +1249,17 @@ And I'm going to go and write this
into, with a second, fine.
+00:30:16.720 --> 00:30:18.179 And now I need to quit here, sorry.
+00:30:18.180 --> 00:30:26.639 And I'm going to come back in a second with another remark.
Well, I'm bringing back and now let's see.
-Let's see what we have in your snippets. +Let's see what we have in yasnippet.
It's not there. Why not? Just a second. Let's see if I go. @@ -1206,20 +1270,23 @@ I don't know if it matters that the name was
that didn't have the characters in the beginning.
+00:30:52.600 --> 00:31:05.699 Just a second. I think I know what is happening here.
-Do I have here? I have them. I'm going to clean. +00:31:05.700 --> 00:31:21.439 +Do I have them? I'm going to clean.
-Oh, you're back in your home directories. Why? +[Sacha]: Oh, you're back in your home directories is why.
-CD dash to get back in. Yeah. That's right. +00:31:28.880 --> 00:31:35.004 +cd - to get back in. + +00:31:35.005 --> 00:31:35.879 +Yeah. That's right.
-So you see how the name also has +So you see how the name also has...
it doesn't have the same as the keys. @@ -1227,10 +1294,13 @@ it doesn't have the same as the keys.
I don't know if that affects what shows up.
-Yeah, we we can try that. That's a quick one. This is my. +00:31:41.040 --> 00:31:44.880 +[Pedro]: Yeah, we we can try that. + +00:31:44.881 --> 00:31:49.999 +That's a quick one. This is my...
+00:31:50.000 --> 00:31:51.279 Fine, now that I have this,
@@ -1243,25 +1313,33 @@ They both seem to be the same now and I don't know if that affects, but anyhow, let's try it.
-I go and then I look at the AR snippets, if it's there. +I go and then I look at the yasnippet, if it's there.
-Yes, it is. Yeah, it's there. +00:32:07.680 --> 00:32:09.956 +Yes, it is. + +00:32:09.957 --> 00:32:11.879 +[Sacha]: Yeah, it's there.
-And then if I say there, there you are. Oh, look at that. +[Pedro]: And then if I say there, there you are. Oh, look at that. + +00:32:18.560 --> 00:32:22.167 +It doesn't seem to be affecting.
-It doesn't seem to be affecting. Fantastic. +00:32:22.168 --> 00:32:24.159 +[Sacha]: Fantastic.
-And by the way, it is there. +[Pedro]: And by the way, it is there. + +NOTE Emacs Lisp
-Yeah, I really should spend time +[Sacha]: Yeah, I really should spend time
-getting more templates set up with Snippet. +getting more templates set up with yasnippet.
I really love the fact that @@ -1270,7 +1348,7 @@ I really love the fact that you can evaluate Emacs Lisp in it too.
-Yeah, I mean, just to make it bigger, +[Pedro]: Yeah, I mean, just to make it bigger,
try that because if I go into my, for example, @@ -1284,13 +1362,13 @@ and in my org mode, I go to the article,
which is one of the big ones.
+00:33:03.320 --> 00:33:05.119 I have things like, for example,
+00:33:05.120 --> 00:33:09.199 I defined a couple of functions here to do if it's empty,
+00:33:09.200 --> 00:33:16.399 if that is empty, just add a white space.
@@ -1300,28 +1378,28 @@ If one is empty, add a white space. add a white space here so it becomes a comment.
-I have functions for to do more things on that +I have functions to do more things on that,
-and I also have like menus to see +and I also have menus to see
+00:33:29.800 --> 00:33:31.439 what language I want to choose for
-for my spell checking and so on so +00:33:31.440 --> 00:33:33.250 +my spell checking and so on.
-and that's all that's as you see +00:33:33.251 --> 00:33:35.480 +And that's all... As you see,
-this is a Lisp being evaluated +00:33:35.481 --> 00:33:39.417 +this is Lisp being evaluated.
-so yes do I really encourage you +00:33:39.418 --> 00:33:45.119 +So yes, do. I really encourage you
-I've also heard people use it, +[Sacha]: I've also heard people use it,
like, especially if they're working @@ -1336,10 +1414,10 @@ so they can just have the syntax for the different languages
-be condensed into a consistent abbreviation. Yeah. +be condensed into a consistent abbreviation.
-And look, this is my article. I have another. +[Pedro]: Yeah. And look, this is my article. I have another.
This is when I'm writing articles. I have another one. @@ -1360,7 +1438,7 @@ and you don't have to type it by hand. So, it's really, really nice.
-Hmm, I think it might be nice to have +[Sacha]: Hmm, I think it might be nice to have
a future Emacs carnival, you know, @@ -1372,7 +1450,7 @@ shared blogging theme thing be around having people share their snippets.
-No snippets and other things like for example, +[Pedro]: Yasnippets and other things. Like for example,
this is something stupid. @@ -1386,10 +1464,10 @@ And of course, there you see,
I have also, this is also with,
+00:34:51.440 --> 00:34:55.792 this is my way of switching buffers,
+00:34:55.793 --> 00:34:58.159 which is with the shift control and tab,
@@ -1401,26 +1479,29 @@ and then when I'm in a family,
I can go and switch with control tab between the different,
+00:35:07.000 --> 00:35:13.659 I'm using tab line by the way. I'm not using the other one.
+00:35:13.660 --> 00:35:20.839 I'm using the old plain tab line with my themes.
So that's more or less everything.
-Thank you for the peek into your workflow. +[Sacha]: Thank you for the peek into your workflow.
I will work on getting the recordings for the live talks
+00:35:30.760 --> 00:35:34.458 sorted out at some point very soon.
+00:35:34.459 --> 00:35:37.084 I might even be able to get them out next week.
-So thanks again. All right. Have a nice supper. Same to you. +00:35:37.085 --> 00:35:43.667 +So thanks again. All right. Have a nice supper. + +00:35:43.668 --> 00:35:44.920 +[Pedro]: Same to you. -- cgit v1.2.3