Wilfred / suggest.el

discover elisp functions that do what you want
367 stars 14 forks source link

Add suggest-insert-example-on-start variable #41

Closed nickdrozd closed 6 years ago

nickdrozd commented 6 years ago

I use suggest regularly (I'm pretty handy with Python, but for some reason I can never remember basic string functions in Emacs), so I'm familiar with how it works. It's annoying to have to delete the example data every time I start it, so this PR adds a custom variable to prevent that data from being inserted.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 95.502% when pulling 23232a4ca2e7e2afa814264dd56f2244eefe9a9a on nickdrozd:master into 5caf98ab49c6b3c421d8f274c0682bbb7fc662fe on Wilfred:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 95.502% when pulling 23232a4ca2e7e2afa814264dd56f2244eefe9a9a on nickdrozd:master into 5caf98ab49c6b3c421d8f274c0682bbb7fc662fe on Wilfred:master.

Wilfred commented 6 years ago

Thanks! I've merged this, but slightly tweaked it so that we don't expose suggest-example-input to the user. This gives us flexibility in future if we want to cycle through multiple usage examples.