[OS X Emacs] Options | Line Wrapping neglected

Normen Müller normen.mueller at googlemail.com
Thu Jul 29 18:35:19 EDT 2010


On Jul 30, 2010, at 12:16 AM, David Reitter wrote:

> On Jul 29, 2010, at 4:47 PM, Normen Müller wrote:
>>
>> One more thing, just to make sure:  Would it be allright to move my  
>> code regarding line wrapping to this position within my .emacs file:
>>
>>>> (custom-set-variables
>>>> ;; custom-set-variables was added by Custom.
>>>> ;; If you edit it by hand, you could mess it up, so be careful.
>>>> ;; Your init file should contain only one such instance.
>>>> ;; If there is more than one, they won't work right.
>>>> '(gud-gdb-command-name "gdb --annotate=1")
>>>> '(large-file-warning-threshold nil)
>>>> '(safe-local-variable-values (quote ((TeX-master . t))))
>>>> )
>>>> (setq font-latex-fontify-sectioning 1)
>>>> (setq fill-column 120)
>>>> (setq visual-line-mode nil t)
>>>> (setq word-wrap t)
>
> No, at least not in Aquamacs.  You should, ideally, not have a  
> custom-set-variables section at all when you're using Aquamacs.


Allright!  I removed (backed up) my .emacs file and use the  
Preferences.el file instead now.  As I use more than one Mac I put  
Preferences.el under version control in order to keep it on my  
computers in sync.  So it looks like this now:

;; This is the Aquamacs Preferences file.
;; Add Emacs-Lisp code here that should be executed whenever
;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop
;; evaluating this file and print errors in the *Messags* buffer.
;; Use this file in place of ~/.emacs (which is loaded as well.)
(setq auto-save-interval 100)

(show-paren-mode t)
(line-number-mode t)
(column-number-mode t)
(global-font-lock-mode t)

(setq font-lock-maximum-decoration t)

(fset 'yes-or-no-p 'y-or-n-p)

;;(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;;(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
;;(if (fboundp 'menu-bar-mode) (menu-bar-mode 1))

(set-background-color "AntiqueWhite2")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun my-auto-fill-for-latex ()
   (auto-fill-mode t)
   (setq word-wrap t)
   (setq fill-column 120))
(add-hook 'LaTeX-mode-hook 'my-auto-fill-for-latex)
(add-hook 'latex-mode-hook 'my-auto-fill-for-latex)
(add-hook 'TeX-mode-hook 'my-auto-fill-for-latex)
(add-hook 'tex-mode-hook 'my-auto-fill-for-latex)

(setq-default TeX-auto-save nil)
(setq-default TeX-auto-regexp-list 'LaTeX-auto-regexp-list)
(setq-default TeX-auto-parse-length 999999)

(setq TeX-parse-self t); Enable parse on load.
(setq TeX-auto-save t) ; Enable parse on save.

(setq font-latex-fontify-sectioning 1.1)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Now everything works fine, BUT I customized my LaTeX face and stored  
to customize.el.  I don't want to have this configuration in  
customize.el, though, but want to move it to Preferences.el.  I have  
no clue how to accomplish this... could you please help me?

My customize.el currently looks like this and basically I want to move  
all of it to Preferences.el in order to have the same settings on all  
of my computers.  Any help is highly appreciated, please:

(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(aquamacs-additional-fontsets nil t)            ; I haven't  
explicitly set
  '(aquamacs-customization-version-id 208 t)       ; these options!   
Do I need them?
  '(aquamacs-tool-bar-user-customization nil t)    ; In other words,  
do I have to move
  '(ns-tool-bar-display-mode (quote both) t)       ; these as well to  
Preferences.el?
  '(ns-tool-bar-size-mode (quote regular) t)       ;
  '(visual-line-mode nil t))
(custom-set-faces
   ;; custom-set-faces was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(latex-mode-default ((t (:inherit text-mode-default :stipple  
nil :strike-through nil :underline nil :slant normal :weight  
normal :height 140 :width normal :family "Monaco")))))




More information about the MacOSX-Emacs mailing list