Тёмный
No video :(

Supercharge your Emacs / Spacemacs / Doom with Yasnippets! 

Jack of Some
Подписаться 30 тыс.
Просмотров 18 тыс.
50% 1

There are some packages that forever changed my emacs (nay, coding) workflow forever. Magit was a big one and now yasnippets joins the ranks too. If you use emacs, spacemacs, or doom emacs you owe it to yourself to learn how to use snippets and how to make your own and I show exactly that in this video.

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@undisclosedmusic4969
@undisclosedmusic4969 4 года назад
I don’t even use emacs. Your voice just calms me
@JackofSome
@JackofSome 4 года назад
Try emacs. It'll calm you more!
@estebanmarin002
@estebanmarin002 4 года назад
@@JackofSome I agree,
@ade5324
@ade5324 2 года назад
@@JackofSome Thats sounds like a threat :L
@rafaelcorella1895
@rafaelcorella1895 3 года назад
Can't believe how well explained this is, thank you so much!
@raccoonteachesyou
@raccoonteachesyou 4 года назад
Wow, I'm glad that you are doing more videos lately ! I can't wait to see if you have more Python related subjects that are not treated by others ! Anyway, do what you love, this is great !
@danv8718
@danv8718 4 года назад
Absolutely fantastic! Thanks a lot for this great intro.
@mystisification
@mystisification 4 года назад
Genius use of snippets, thanks man!
@nezubn
@nezubn 2 года назад
Really need more videos of emacs from you
@MMABeijing
@MMABeijing 3 года назад
thank you so very much, your explanation was fast and clear, what an amazing teacher you are
@akarshjain7141
@akarshjain7141 4 года назад
Hey Jack you could use snippets in snippet creation buffer as well. 🤪 Your videos are simply "learning python in the wonderland".
@JackofSome
@JackofSome 4 года назад
*Thanos voice* "I used the snippets to create the snippets" (Thank you for the kind words)
@kaelandchatman4780
@kaelandchatman4780 4 года назад
Wow! Thank you for creating this video!
@Zakaros1000
@Zakaros1000 Год назад
And that's exactly what I was looking for. I was following a CSS course where the guy started introducing the use of snippets for VS Code, and I was wondering if my lovely Doom Emacs have something alike. and here we are!
@estebanmarin002
@estebanmarin002 4 года назад
Please do more videos like this!
@unperrier5998
@unperrier5998 4 года назад
I'm looking if it exists for vim... yes it does! Thanks for the pointer it looks really awesome.
@JackofSome
@JackofSome 4 года назад
Fantastic. I'm not familiar with how you extend vim, something something vimscript? I'd be curious to see how it supplants elisp in the vim version of yasnippets.
@ananon5771
@ananon5771 4 года назад
@@JackofSome its probably a yasnippits *inspired* plugin or it relies on emacs/some elisp to do the heavy lifting vim-org does this for exporting to pdf and html,and the vim port of slime,and before you get confused on why,im equally as confused for so many reasons.
4 года назад
Things like date you already could do it evaluating elisp values directly in your buffer.
@JackofSome
@JackofSome 4 года назад
Certainly you can do (insert (format-time-string "%Y")) and eval region but the original code remains no? Is there a way to get ride of it?
@marcel948
@marcel948 3 года назад
Finally it made click. Thank you!
@hackerzol
@hackerzol 2 года назад
I have this installed but I don't use it nearly enough. I need to go make some moar snippets!
@mchisolm0
@mchisolm0 2 года назад
Thank you so much for sharing Yasnippets! I tried searching but could not find snippets for React Native/JavaScript/TypeScript. Do you have a specific place you go to to find useful snippets?
@adithyakumar6564
@adithyakumar6564 4 года назад
Hey Jack, you just made my life 10 times easier. Let me buy you a cup of coffee :-)
@JackofSome
@JackofSome 4 года назад
Sure thing. Glad this was helpful. You can donate here www.buymeacoffee.com/Ej8qUm5 or you can donate to a Humanitarian Organization like the Red Cross or Humanity First.
@adithyakumar6564
@adithyakumar6564 4 года назад
@@JackofSome How about both? Also, you should put that link on your video description.
@adithyakumar6564
@adithyakumar6564 4 года назад
@@JackofSome Probably not best to bother you like this but "The requested action could not be performed, semantically incorrect, or failed business validation.". You might need to do some validation I believe.
@birmanets
@birmanets 3 года назад
Great video! Sorry this is a bit off topic but what audio setup do you use for video's? Sounds great.
@JackofSome
@JackofSome 3 года назад
I feel like all my videos ultimately end up having a different audio setup (still trying to find my sweet spot). This one was using the SM7B mic recorded with a Focusrite solo and with a FetHead amplifier in the chain.
@birmanets
@birmanets 3 года назад
@@JackofSome Thanks for the reply! Nice setup, that video sounds sweet. I find the audio of USB microphones is not as good as XLR mics.
@WillyRempel
@WillyRempel 4 года назад
I'm missing the 'class' snippet. I'm on develop branch, emacs 26.3. What's going on? Where do I get all the snippets?
@JackofSome
@JackofSome 4 года назад
I'm starting to think I gave wrong information. The class snippet at least (and possibly others from python mode) are bundled only with elpy
@WillyRempel
@WillyRempel 4 года назад
@@JackofSome I found it in the elpy repo. For now I will manually copy his snippets folder to my private folder. I searched in spacemacs repo to find rationale re elpy vs not. One user thought that elpy is better than the current layer. I would like to know if this is true.
@devGurus
@devGurus Год назад
hey jack. thanks for the video. how can we add a system directory to dropbox. tnx
@KolobeTona
@KolobeTona 3 года назад
Where's that init code for fundamental-mode, please?
@chomik3873
@chomik3873 4 года назад
Cool video. Would be nice if you included links to your dotfiles. I bet there's a lot of inspiration in there
@JackofSome
@JackofSome 4 года назад
GitHub.com/safijari/stupid-spacemacs
@chomik3873
@chomik3873 4 года назад
@@JackofSome Thanks!
@JackofSome
@JackofSome 4 года назад
You'll come to see it now as horrifying than inspiring 😅
@chomik3873
@chomik3873 4 года назад
@@JackofSome Well, beginner's knowledge of lisp doesn't help much :') Did you find any interesting resources while creating this config or was it mostly browsing documentation and googling specifics stuff?
@subhajitmishra007
@subhajitmishra007 Год назад
Is it possible to make yassnippet listed in autocomplete pop up with Corfu? It would be easire to get the snippets listed, similar to luasnip in neovim.
@varad3259
@varad3259 3 года назад
By the way, that elisp function elpy-snippet-init-assignments when i try to expand the class snippet, it says "symbol's function definition is void: elpy-snippet-init-assignments". What do I do?
@JackofSome
@JackofSome 3 года назад
Sorry i never mentioned it in the video but you need elpy installed for these
@alexisgomez6868
@alexisgomez6868 3 года назад
For some reason when I create a new snippet the 'key' doesn't work, but I can insert it using yas-inser-snippet :(
@jg7346
@jg7346 4 года назад
Did you switch to Emacs Doom??
@JackofSome
@JackofSome 4 года назад
Nay. Got frustrated with both so ended up building my own spacemacs from scratch. I'll do a video on it... some day
@jg7346
@jg7346 4 года назад
Jack of Some would be great if u could share your built on GH! Thx
@JackofSome
@JackofSome 4 года назад
github.com/safijari/stupid-spacemacs This is a slightly older version. The current config contains a bunch of work related stuff so I've been keeping it private.
@abrarmasumabir3809
@abrarmasumabir3809 Год назад
Sir what theme are you using? Can I install this theme for vim!
3 года назад
Can you share your unit.el and the site where you show in the video?
@ThinkAct2win
@ThinkAct2win 4 года назад
I enabled yas-snippet-mode, but still get the message of no snippets to be inserted here!
@JackofSome
@JackofSome 4 года назад
Can you give more details? What mode are you in? Do you get any results if you use the "visit snippets" commands?
@ThinkAct2win
@ThinkAct2win 4 года назад
@@JackofSome in python-mode. And when i run yas-visit-snippet-file i get "No snippets tables active!"
@JackofSome
@JackofSome 4 года назад
Do you know if a python extension is installed (common ones are anaconda-mode or elpy, I use elpy)?
@ThinkAct2win
@ThinkAct2win 4 года назад
@@JackofSome No i did not. Now I can see the snippets and insert them. However, autocompletion did not work until I redefined the Yasnippets expansion key! Thanks a lot;)
@moonightmars3510
@moonightmars3510 2 года назад
want to know the fonts
@JackofSome
@JackofSome 2 года назад
mononoki
@abrarmasumabir3809
@abrarmasumabir3809 2 года назад
what font are you using?
@JackofSome
@JackofSome 2 года назад
mononoki
@aniketpatil6111
@aniketpatil6111 4 года назад
What is the font Name you arey using ?
@JackofSome
@JackofSome 4 года назад
madmalik.github.io/mononoki/
Далее
Spacemacs Navigation Superpowers (ft. Channel Update)
16:18
Doom Emacs On Day One (Learn These Things FIRST!)
35:10
Reproducible Research with GNU Emacs and Org-mode
33:00
From Vim to  Emacs - Is this even my final form?
36:50
Three HUGE Mistakes New Emacs Users Make
13:28
Просмотров 93 тыс.
Modern Emacs UI
9:32
Просмотров 23 тыс.