O que é .emacs? Como faço para editá-lo?

2

Em este artigo , eu não entenda o passo 7:

7. Add (load-library “init_python”) in your .emacs

Como posso fazer isso?

    
por Andy Leman 28.03.2011 / 01:56

1 resposta

6

Para citar o manual do Emacs em The Init File :

When Emacs is started, it normally tries to load a Lisp program from an initialization file, or init file for short. This file, if it exists, specifies how to initialize Emacs for you. Emacs looks for your init file using the filenames ~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el; you can choose to use any one of these three names. Here, ~/ stands for your home directory.

Originalmente, o Emacs procurava apenas por ~/.emacs . Os nomes das variantes foram introduzidos em versões mais recentes do Emacs.

Então, neste caso:

Digite C-x C-f ~/.emacs <ENTER> para carregar ou criar seu arquivo .emacs .

Digite (load-library “init_python”) nesse arquivo.

Digite C-x C-s para salvá-lo.

    
por 28.03.2011 / 03:22

Tags