first of all you should read some introduction to emacs and its init file: "http://wikemacs.org/index.php/User's_Initialization_File" This file is located at ~/.emacs
or ~/.emacs.d/init.el
.
So you should write the instructions (from http://wiki.sagemath.org/sage-mode right ?) in this file.