Aquamacs or Emacs in general is a great editor.  If you're "extremely naive in programming", I would suggest you use the TexShop or the TexWorks application.  Both are included with the Mac version of the TexLive distribution which you will need for Latex.<div>
<br></div><div>Here is the link: <a href="http://www.tug.org/mactex/2011/">http://www.tug.org/mactex/2011/</a></div><div><br></div><div>You will spend more time on your writing than trying to learn and remember the millions of key combinations with Auctex.  Unless of course that's what you're trying to do.  Just a suggestion ...</div>
<div><br></div><div>Cheers, Mel<br><br><div class="gmail_quote">On Thu, Sep 15, 2011 at 11:03 AM, Nuel Belnap <span dir="ltr"><<a href="mailto:belnap@pitt.edu">belnap@pitt.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear All,<br>
<br>
I use Aquamacs 2.3a on a MacBook Air 10.6.8 for my writing in philosophical logic.  I am extremely naive in programming.  I copied much of what is below into my preferences.el file, which I will append.  Nothing works except the first key definition.  I've obviously made some elementary global error, but I cannot figure out what it is.  Help.<br>

<br>
******<br>
;; This is the Aquamacs Preferences file.<br>
;; Add Emacs-Lisp code here that should be executed whenever<br>
;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop<br>
;; evaluating this file and print errors in the *Messags* buffer.<br>
;; Use this file in place of ~/.emacs (which is loaded as well.)<br>
<br>
<br>
<br>
(global-set-key (kbd "C-c v") 'save-and-latex)<br>
(global-set-key (kbd "<f8>") 'save-and-latex)<br>
(fset 'save-and-latex<br>
   [?\A-s ?\C-c ?\C-c return])<br>
(fset 'get-fn<br>
   [f1 ?v ?b ?u ?f ?f ?e ?r ?- ?f ?i ?l ?e ?- ?n ?a ?m ?e return ?\C-x right ?\C-s ?u ?s ?e ?r ?s A-left ?\C-@ down ?\A-c ?\A-w ?\A-v])<br>
<div class="im"><br>
;; suggestions from the AUCTeX manual<br>
(require 'tex-site)<br>
(setq TeX-auto-save t)<br>
(setq TeX-parse-self t)<br>
(setq-default TeX-master nil)<br>
<br>
</div><div class="im">;; turn on auto fill in LaTeX<br>
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)<br>
<br>
</div><div class="im">;; turn on Visual Line Mode by default<br>
(global-visual-line-mode t)<br>
(add-hook 'LaTeX-mode-hook 'visual-line-mode)<br>
<br>
;; turn on on-the-fly spell checking<br>
(add-hook 'LaTeX-mode-hook 'flyspell-mode)<br>
<br>
;; turn on RefTeX<br>
(add-hook 'latex-mode-hook 'turn-on-reftex)<br>
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)<br>
(setq reftex-plug-into-auctex t)<br>
<br>
;; parenthesis matching as in textmate<br>
;; (1) curl -O <a href="http://autopair.googlecode.com/svn/trunk/autopair.el" target="_blank">http://autopair.googlecode.com/svn/trunk/autopair.el</a><br>
;; (2) mv autopair.el ~/.emacs.d/autopair/<br>
;; (3) put the following in Preferences.el<br>
(add-to-list 'load-path "~/.emacs.d/autopair")<br>
  (require 'autopair)<br>
  (autopair-global-mode); enable autopair in all buffers<br>
<br>
;; include $-sign in autopair<br>
(add-hook 'TeX-mode-hook<br>
          (lambda ()<br>
             (modify-syntax-entry ?$ "\"")))<br>
<br>
</div>*******<br>
<div><div></div><div class="h5"><br>
On Sep 15, 2011, at 4:45 AM, Hofert Jan Marius wrote:<br>
<br>
<br>
> Dear all,<br>
><br>
> I installed of Aquamacs 2.3a on a MacBook Pro 10.6.8. I was hoping that the solution posted under the subject "Wiki code not working: Symbol's function definition is void: guess-TeX-master" worked again, but it doesn't (and I don't know why). The goal is to get Aquamacs to compile an example.tex document which does not have a proper header but is simply a tex file included in a "master .tex file", call it master.tex.<br>

><br>
> Following the previous posts, I have these entries in Preferences.el (just in case this has any influence on the problem, I included other commands too (only those that also affect latex mode; apart from that, I only have some R commands defined in Preferences.el)):<br>

><br>
> ### Preferences.el ######################################<br>
><br>
> ;; suggestions from the AUCTeX manual<br>
> (require 'tex-site)<br>
> (setq TeX-auto-save t)<br>
> (setq TeX-parse-self t)<br>
> (setq-default TeX-master nil)<br>
><br>
> ;; turn on LaTeX Math mode by default<br>
> (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)<br>
><br>
> ;; turn on auto fill in LaTeX<br>
> (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)<br>
><br>
> ;; setup for master file when working on projects with multiple .tex files<br>
> (defun guess-TeX-master (filename)<br>
>      "Guess the master file for FILENAME from currently open .tex files."<br>
>      (let ((candidate nil)<br>
>            (filename (file-name-nondirectory filename)))<br>
>        (save-excursion<br>
>          (dolist (buffer (buffer-list))<br>
>            (with-current-buffer buffer<br>
>              (let ((name (buffer-name))<br>
>                    (file buffer-file-name))<br>
>                (if (and file (string-match "\\.tex$" file))<br>
>                    (progn<br>
>                      (goto-char (point-min))<br>
>                      (if (re-search-forward (concat "\\\\input{" filename "}") nil t)<br>
>                          (setq candidate file))<br>
>                      (if (re-search-forward (concat "\\\\include{" (file-name-sans-extension filename) "}") nil t)<br>
>                          (setq candidate file))))))))<br>
>        (if candidate<br>
>            (message "TeX master document: %s" (file-name-nondirectory candidate)))<br>
>        candidate))<br>
> (add-hook 'LaTeX-mode-hook<br>
>               '(lambda ()<br>
>                       (setq TeX-master (guess-TeX-master (buffer-file-name)))))<br>
><br>
> ;; turn on Visual Line Mode by default<br>
> (global-visual-line-mode t)<br>
> (add-hook 'LaTeX-mode-hook 'visual-line-mode)<br>
><br>
> ;; turn on on-the-fly spell checking<br>
> (add-hook 'LaTeX-mode-hook 'flyspell-mode)<br>
><br>
> ;; turn on RefTeX<br>
> (add-hook 'latex-mode-hook 'turn-on-reftex)<br>
> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)<br>
> (setq reftex-plug-into-auctex t)<br>
><br>
> ;; parenthesis matching as in textmate<br>
> ;; (1) curl -O <a href="http://autopair.googlecode.com/svn/trunk/autopair.el" target="_blank">http://autopair.googlecode.com/svn/trunk/autopair.el</a><br>
> ;; (2) mv autopair.el ~/.emacs.d/autopair/<br>
> ;; (3) put the following in Preferences.el<br>
> (add-to-list 'load-path "~/.emacs.d/autopair")<br>
>   (require 'autopair)<br>
>   (autopair-global-mode); enable autopair in all buffers<br>
><br>
> ;; include $-sign in autopair<br>
> (add-hook 'TeX-mode-hook<br>
>           (lambda ()<br>
>              (modify-syntax-entry ?$ "\"")))<br>
><br>
> ####################################################<br>
><br>
> Now if I have opened example.tex (with or without opened master.tex) and I hit C-c C-c to compile it with latex, I face the following behavior:<br>
><br>
> (1) Many errors are produced (like \begin{document} is missing etc.). Here is the beginning of the output:<br>
><br>
> Running `LaTeX' on `example' with ``pdflatex --synctex=1 -interaction=nonstopmode "\input" example.tex''<br>
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)<br>
> restricted \write18 enabled.<br>
> entering extended mode<br>
> LaTeX2e <2009/09/24><br>
> Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, ukenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.<br>

> (./example.tex<br>
> ! Undefined control sequence.<br>
> l.9 \chapter<br>
>            {\mytitle}<br>
> ! Undefined control sequence.<br>
> l.9 \chapter{\mytitle<br>
>                     }<br>
> ! LaTeX Error: Missing \begin{document}.<br>
> ...<br>
><br>
> (2) A strange behavior is also that instead of stopping after the first error, latex runs and runs until it finally stops with:<br>
> !  ==> Fatal error occurred, no output PDF file produced!<br>
> Transcript written on chapter.log.<br>
> LaTeX exited abnormally with code 1 at Thu Sep 15 10:41:36<br>
><br>
> Is there anything I have missed in the settings? typically, latex should stop after the first error. Then, there should not be any error if master.tex was found correctly.... hmmm...<br>
><br>
> Cheers,<br>
><br>
> Marius<br>
><br>
</div></div>> _____________________________________________________________<br>
> MacOSX-Emacs mailing list<br>
> <a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>
> <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
> List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
<br>
<br>_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
<br></blockquote></div><br></div>