added ergomacs and changed common methods to C-M-g