]> git.donarmstrong.com Git - emacs.git/commitdiff
use setq-default instead of just setq in .emacs
authorDon Armstrong <don@donarmstrong.com>
Fri, 4 Jan 2013 00:28:36 +0000 (16:28 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 4 Jan 2013 00:28:36 +0000 (16:28 -0800)
.emacs

diff --git a/.emacs b/.emacs
index 0c1310d83148fa5d0cb3d4d3d4b89ec7d3d61dab..a847ed2663e4442001dec2d6f51c63828a3e2284 100644 (file)
--- a/.emacs
+++ b/.emacs
 ;;(require 'fixme)
 (require 'google-weather)
 (require 'org-google-weather)
-(setq org-google-weather-format "%i %c, [%l,%h] %s %C")
+(setq-default org-google-weather-format "%i %c, [%l,%h] %s %C")
 
 
 (global-set-key "\C-xp" 'server-edit)
 
-(setq auto-mode-alist (cons '("\.wml$" . 
+(setq-default auto-mode-alist (cons '("\.wml$" . 
                              (lambda () (html-mode) (auto-fill-mode)))
                            auto-mode-alist))
 
 ;;   which really should be,
 ;;   if (-!-) {
 ;;   }
-(setq cperl-hairy t
+(setq-default cperl-hairy t
       cperl-indent-level 4
 ;;      cperl-auto-newline t
 ;;      cperl-auto-newline-after-colon t
 
 ;(load-library "php-mode")
 
-(setq c-indent-level 8)
-(setq c-brace-imaginary-offset 0)
-(setq c-brace-offset -8)
-(setq c-argdecl-indent 8)
-(setq c-label-offset -8)
-(setq c-continued-statement-offset 8)
-(setq indent-tabs-mode nil)
-(setq tab-width 8)
+(setq-default c-indent-level 8)
+(setq-default c-brace-imaginary-offset 0)
+(setq-default c-brace-offset -8)
+(setq-default c-argdecl-indent 8)
+(setq-default c-label-offset -8)
+(setq-default c-continued-statement-offset 8)
+; tabs are annoying
+(setq-default indent-tabs-mode nil)
+(setq-default tab-width 8)
 
 
 ;; (autoload 'php-mode "php-mode" "PHP editing mode" t)
 (add-to-list 'font-latex-match-function-keywords "aclu")
 (add-to-list 'font-latex-match-function-keywords "acused")
 (font-latex-match-function-make)
-(setq TeX-parse-self t)
-(setq TeX-auto-save t)
+(setq-default TeX-parse-self t)
+(setq-default TeX-auto-save t)
 (setq-default TeX-master nil)
 
 (defun insert-date ()
 ;(iswitchb-default-keybindings)
 
 (column-number-mode t)
-(setq reftex-plug-into-AUCTeX t)
+(setq-default reftex-plug-into-AUCTeX t)
 
 (server-start)
 
 (require 'mode-compile)
 
-(setq reftex-default-bibliography
+(setq-default reftex-default-bibliography
       '("references.bib"))
 
 (defadvice server-process-filter (after post-mode-message first activate)
                                        ; This is also needed to see the magic message.  Set to a higher
                                        ; number if you have a faster computer or read slower than me.
 '(font-lock-verbose 1000)
-;(setq server-temp-file-regexp "mutt\(-\|ng-\)")
+;(setq-default server-temp-file-regexp "mutt\(-\|ng-\)")
 ; (add-hook 'server-switch-hook 
 ;        (function (lambda()
 ;                    (cond ((string-match "Post" mode-name)
 (global-set-key "\C-cl" 'org-store-link)
 (global-set-key "\C-ca" 'org-agenda)
 (global-set-key "\C-cb" 'org-iswitchb)
-(setq org-log-done 'time)
-(setq org-agenda-ndays 5)
+(setq-default org-log-done 'time)
+(setq-default org-agenda-ndays 5)
 
 
 (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
 )
 (add-hook 'org-mode-hook 'my-org-mode-setup)
 
-(setq org-mobile-directory "/rzlab.ucr.edu:/sites/dav.donarmstrong.com/root/org/")
-(setq org-directory "/home/don/org-mode/")
-(setq org-mobile-inbox-for-pull "/home/don/org-mode/from-mobile.org")
+(setq-default org-mobile-directory "/rzlab.ucr.edu:/sites/dav.donarmstrong.com/root/org/")
+(setq-default org-directory "/home/don/org-mode/")
+(setq-default org-mobile-inbox-for-pull "/home/don/org-mode/from-mobile.org")
 
 ; debian stuff
-(setq debian-changelog-mailing-address "don@debian.org")
-(setq debian-changelog-full-name "Don Armstrong")
+(setq-default debian-changelog-mailing-address "don@debian.org")
+(setq-default debian-changelog-full-name "Don Armstrong")