Kungsgeten / yankpad

Paste snippets from an org-mode file
MIT License
216 stars 18 forks source link

feat: make use of yasnippet configurable #84

Closed Fuco1 closed 2 years ago

Fuco1 commented 2 years ago

I'm using a lot of bash source snippets which uses $1 etc for bash arguments. I don't want yasnippet expanding those/using them for tab-insertion (which actually I never really want).

This patch adds a simple setting to turn of yasnippet even if it is available. The setting is backward compatible and does not change existing behaviour without opting out.

Kungsgeten commented 2 years ago

Looks good! The check for yas-minor-mode could probably be included in the new function, but that could be changed later. Thanks!

Fuco1 commented 2 years ago

oh yea, I did not realize the check for minor mode was repeated everywhere :blush: Thanks for merging it so fast!