<br><br><div class="gmail_quote">On Sat, Mar 13, 2010 at 10:03 PM, Kurt Andrews <span dir="ltr"><<a href="mailto:kurt.w.andrews@gmail.com">kurt.w.andrews@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm new to emacs.  I'm trying to learn it because I'm working through the "Structure and Interpretation of Computer Programs" lecture and text, and I'm trying to resurrect some programming skills from an AI  course I took a number of years ago that require lisp.
<div><br></div><div>Let me start by saying that I find it hard to understand why a text editor needs to be this complicated.  Now that that's out of the way, I fully intend to figure out how to get the most out of this editor.</div>


<div><br></div><div>I'll start with a simple list of things that need to be accomplished to get the editor to an acceptable state where I can spend a few hours coding</div><div><br></div><div><ol><li>highlight the current line</li>

<ul><li>this was easy to find in the options->view menu and saving options is all that was needed.</li><li></li><li>save added  '(global-hl-line-mode t) to custom-set-variables</li><div><br></div></ul><li>all tabs '/t' to expand to two spaces in all buffers, files etc.</li>

<ul><li>I had to poke around in options->customize aquamacs to figure out how to get the tabs and indenting to work the way I want, but it wasn't intuative.  When I was done the following lines were added to custom-set-variables</li>

<ul><li> '(indent-tabs-mode nil)</li><li> '(standard-indent 2)</li><li> '(tab-width 2)</li></ul></ul><li>turn on line numbering in the left margin for everything by default</li><ul><li>I had to look at least two places to find the answer to figure this out and hack the linum.el program in the application resources for aquamacs.  None of the stuff on the wiki would work until I found the comments about require in linum.el.  I've included my preferences.el file below</li>

</ul><li>get everything that i open or create with aquamacs to use the same "menlo" font</li><ul><li><b><i><span style="text-decoration:underline">This is where the questions start </span><span style="font-style:normal;font-weight:normal">I worked on this for two days and I'm still not sure it's the right way to do this, but it's working for me.  I won't add any of this information to the wiki until someone can explain what's going on and whether or not this is the right way to do this.</span></i></b></li>

<li>Following the instructions on the aquamacs wiki to change the default font, added line 18 to my customizations.el, but that didn't change the font to menlo for everything.  I tried options->appearance and setting the font for individual modes.  Saving options after each change for a mode, made the font persist for that mode, but I didn't want to have to do that for every mode.  I don't even know how many there are or exactly what a mode is.  Options->appearance->autofaces->use current face as default added line 19 to customizations.el.  This did the trick for me, now everything uses the same font, but color-theme-selector is broken.  I don't even know what faces/autofaces are so I'm not sure what's going on </li>

</ul><li>Get a better color theme working (maybe fix xcode or create my own)</li><ul><li>Since I was never able to get the xcode color theme to stick, the default color theme is working for now, but I find it hard to read especially the way perl mode is highlighting hashes and arrays, I've got to fix that.  There may be a bug in the xcode color theme, (Warning: Bug in color-theme-mode: it forgets to call `run-mode-hooks) is logged to the messages buffer when I try to use it.  I don't know if this is why it won't stick or not.  I'd like to try to fix this or come up with my own color theme but I don't really understand the process for changing any of the el code in the gzip files, our how to create the compiled elc code that's in the resource directory.  Is there a way via configuration to get the xcode theme to stick?  How would I fix xcode, or add my own theme?</li>

</ul></ol><div>Here are my configuration files:</div><div><ul><li>Customizations.el</li></ul><ol></ol><ol><li>(custom-set-variables</li><li>  ;; custom-set-variables was added by Custom.</li><li>  ;; If you edit it by hand, you could mess it up, so be careful.</li>

<li>  ;; Your init file should contain only one such instance.</li><li>  ;; If there is more than one, they won't work right.</li><li> '(aquamacs-additional-fontsets nil t)</li><li> '(aquamacs-customization-version-id 190 t)</li>

<li> '(global-hl-line-mode t)</li><li> '(indent-tabs-mode nil)</li><li> '(standard-indent 2)</li><li> '(tab-width 2)</li><li> '(transient-mark-mode t))</li><li>(custom-set-faces</li><li>  ;; custom-set-faces was added by Custom.</li>

<li>  ;; If you edit it by hand, you could mess it up, so be careful.</li><li>  ;; Your init file should contain only one such instance.</li><li>  ;; If there is more than one, they won't work right.</li><li> '(default ((t (:stipple nil :background "White" :foreground "Black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :family "menlo"))))</li>

<li> '(autoface-default ((t (:inherit default :background "White" :foreground "Black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :family "menlo")))))</li>

</ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ol></ol><ul><li>preferences.el</li></ul><div><ol><li>;; This is the Aquamacs Preferences file.</li><li>;; Add Emacs-Lisp code here that should be executed whenever</li>

<li>;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop</li><li>;; evaluating this file and print errors in the *Messags* buffer.</li><li>;; Use this file in place of ~/.emacs (which is loaded as well.)</li>
<li>
<br></li><li>(require 'linum)</li><li>(global-linum-mode 1)</li></ol><div>Thanks,</div><div><br></div><font color="#888888"><div>Kurt</div></font></div></div></div>
</blockquote></div><br>