Supercharge your Emacs / Spacemacs / Doom with Yasnippets!

  Рет қаралды 18,123

Jack of Some

Jack of Some

Күн бұрын

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.

Пікірлер: 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 4 жыл бұрын
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.
@nezubn
@nezubn 2 жыл бұрын
Really need more videos of emacs from you
@mystisification
@mystisification 4 жыл бұрын
Genius use of snippets, thanks man!
@MMABeijing
@MMABeijing 3 жыл бұрын
thank you so very much, your explanation was fast and clear, what an amazing teacher you are
@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?
@estebanmarin002
@estebanmarin002 4 жыл бұрын
Please do more videos like this!
@kaelandchatman4780
@kaelandchatman4780 4 жыл бұрын
Wow! Thank you for creating this video!
@abrarmasumabir3809
@abrarmasumabir3809 Жыл бұрын
Sir what theme are you using? Can I install this theme for vim!
@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.
@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!
@hackerzol
@hackerzol 2 жыл бұрын
I have this installed but I don't use it nearly enough. I need to go make some moar snippets!
@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)
@devGurus
@devGurus Жыл бұрын
hey jack. thanks for the video. how can we add a system directory to dropbox. tnx
@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.
@birmanets
@birmanets 4 жыл бұрын
Great video! Sorry this is a bit off topic but what audio setup do you use for video's? Sounds great.
@JackofSome
@JackofSome 4 жыл бұрын
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 4 жыл бұрын
@@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.
@KolobeTona
@KolobeTona 3 жыл бұрын
Where's that init code for fundamental-mode, please?
@varad3259
@varad3259 4 жыл бұрын
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 4 жыл бұрын
Sorry i never mentioned it in the video but you need elpy installed for these
@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.
@marcel948
@marcel948 3 жыл бұрын
Finally it made click. Thank you!
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?
3 жыл бұрын
Can you share your unit.el and the site where you show in the video?
@alexisgomez6868
@alexisgomez6868 4 жыл бұрын
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 3 жыл бұрын
what font are you using?
@JackofSome
@JackofSome 3 жыл бұрын
mononoki
@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?
@aniketpatil6111
@aniketpatil6111 4 жыл бұрын
What is the font Name you arey using ?
@JackofSome
@JackofSome 4 жыл бұрын
madmalik.github.io/mononoki/
@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.
@moonightmars3510
@moonightmars3510 3 жыл бұрын
want to know the fonts
@JackofSome
@JackofSome 3 жыл бұрын
mononoki
@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;)
Workflow (ASMR): Spacemacs, Emacs, Doom Emacs, Vim, Python
19:56
Jack of Some
Рет қаралды 15 М.
Org mode and Spacemacs: The Absolute Minimum you need to know
21:16
Как не носить с собой вещи
00:31
Miracle
Рет қаралды 894 М.
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 8 МЛН
Three HUGE Mistakes New Emacs Users Make
13:28
DistroTube
Рет қаралды 96 М.
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 110 М.
Spacemacs Navigation Superpowers (ft. Channel Update)
16:18
Jack of Some
Рет қаралды 11 М.
Bookmarks, Buffers and Windows in Doom Emacs
16:32
DistroTube
Рет қаралды 29 М.
Org Mode Basics In Doom Emacs
26:08
DistroTube
Рет қаралды 100 М.
LaTeX snippets with Yasnippet & Auto Activating Snippets
11:22
Mark Olson
Рет қаралды 1,4 М.
VSCode's Python Interactive mode is AMAZING!
6:58
Jack of Some
Рет қаралды 350 М.
Doom Emacs On Day One (Learn These Things FIRST!)
35:10
DistroTube
Рет қаралды 176 М.
Capturing Notes Efficiently in Emacs with Org Roam
31:06
System Crafters
Рет қаралды 45 М.