[OS X Emacs] Re: aquamacs 1.9 configuration issues
Kurt Andrews
Kurt.W.Andrews at sbcglobal.net
Tue Mar 16 22:01:40 EDT 2010
On Sat, Mar 13, 2010 at 10:03 PM, Kurt Andrews <kurt.w.andrews at gmail.com>wrote:
> 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.
>
> 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.
>
> 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
>
>
> 1. highlight the current line
> - this was easy to find in the options->view menu and saving options
> is all that was needed.
> -
> - save added '(global-hl-line-mode t) to custom-set-variables
>
> 2. all tabs '/t' to expand to two spaces in all buffers, files etc.
> - 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
> - '(indent-tabs-mode nil)
> - '(standard-indent 2)
> - '(tab-width 2)
> 3. turn on line numbering in the left margin for everything by
> default
> - 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
> 4. get everything that i open or create with aquamacs to use the same
> "menlo" font
> - *This is where the questions start 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.
> *
> - 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
> 5. Get a better color theme working (maybe fix xcode or create my own)
> - 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?
>
> Here are my configuration files:
>
> - Customizations.el
>
>
>
>
> 1. (custom-set-variables
> 2. ;; custom-set-variables was added by Custom.
> 3. ;; If you edit it by hand, you could mess it up, so be careful.
> 4. ;; Your init file should contain only one such instance.
> 5. ;; If there is more than one, they won't work right.
> 6. '(aquamacs-additional-fontsets nil t)
> 7. '(aquamacs-customization-version-id 190 t)
> 8. '(global-hl-line-mode t)
> 9. '(indent-tabs-mode nil)
> 10. '(standard-indent 2)
> 11. '(tab-width 2)
> 12. '(transient-mark-mode t))
> 13. (custom-set-faces
> 14. ;; custom-set-faces was added by Custom.
> 15. ;; If you edit it by hand, you could mess it up, so be careful.
> 16. ;; Your init file should contain only one such instance.
> 17. ;; If there is more than one, they won't work right.
> 18. '(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"))))
> 19. '(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")))))
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> - preferences.el
>
>
> 1. ;; This is the Aquamacs Preferences file.
> 2. ;; Add Emacs-Lisp code here that should be executed whenever
> 3. ;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop
> 4. ;; evaluating this file and print errors in the *Messags* buffer.
> 5. ;; Use this file in place of ~/.emacs (which is loaded as well.)
> 6.
> 7. (require 'linum)
> 8. (global-linum-mode 1)
>
> Thanks,
>
> Kurt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20100316/cfe86bf8/attachment.html>
More information about the MacOSX-Emacs
mailing list