I'm trying to write a yasnippet template to write a standard header at the top of files. I have (goto-char (point-min)) at the beginning of the template in order to move point to the top of the buffer; and while this works correctly, it outputs a 1. This is presumably an affirmation of success from goto-char.

How would I suppress or eat that 1?

Or is there a better way to position a yasnippet template at the top of a buffer?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.