0

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?

  • 3
    Just wrap like (progn (foo) nil) – abo-abo Mar 17 '15 at 16:19
  • Sweet. `(progn (goto-char (point-min)) nil) works. – ericx Mar 17 '15 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.