;;; -*- mode: emacs-lisp; coding: utf-8 -*-
;;;
-;;; $Id: .emacs,v 1.11 1997/01/01 18:47:09 mdw Exp $
-;;;
;;; Emacs configuration file
;;;
;;; (c) 1996-1999 Mark Wooding
(setq backup-by-copying-when-linked t)
(setq backup-by-copying-when-mismatch t)
+(setq mdw-backup-disable-regexps
+ '("/\\.git/COMMIT_EDITMSG$"
+ "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$"))
+
+;; --- Safe variables ---
+
+(setq safe-local-variable-values
+ '((make-backup-files . nil)))
+
;; --- Calculator fiddling ---
(setq calc-settings-file "~/.emacs-calc")
(trap (or mdw-fast-startup (global-auto-revert-mode t)))
(setq psgml-html-build-new-buffer nil)
+(defvar mdw-black-background t)
+
(setq cltl2-root-url (mdw-config 'cltl-url))
(setq common-lisp-hyperspec-root (mdw-config 'hyperspec-url))
;;;----- Calendar configuration ---------------------------------------------
+(setq diary-file "~/etc/diary")
+
;; --- Trivial stuff for the sunrise/sunset calculations ---
(setq calendar-latitude 52.2)
(setq calendar-longitude 0.1)
(setq calendar-location-name "Cambridge, UK")
+;; --- Holidays ---
+
+(and (not mdw-fast-startup)
+ (trap
+ (require 'ew-hols)
+ (setq other-holidays (append english-and-welsh-bank-holidays
+ other-holidays))))
+
;; --- Date format fiddling ---
(setq european-calendar-style t)
(let ((view-diary-entries-initially t))
(calendar))))
-(defvar mdw-black-background t)
+;;;----- MailCrypt ----------------------------------------------------------
;; --- Define more mode hooks for MailCrypt ---
("^pdf$" "." "evince %o")
("^html?$" "." "netscape %o")))
+;;;----- SLIME setup --------------------------------------------------------
+
+(let ((stuff '((cmucl ("cmucl"))
+ (sbcl ("sbcl") :coding-system utf-8-unix)
+ (clisp ("clisp") :coding-system utf-8-unix))))
+ (or (boundp 'slime-lisp-implementations)
+ (setq slime-lisp-implementations nil))
+ (while stuff
+ (let* ((head (car stuff))
+ (found (assq (car head) slime-lisp-implementations)))
+ (setq stuff (cdr stuff))
+ (if found
+ (rplacd found (cdr head))
+ (setq slime-lisp-implementations
+ (cons head slime-lisp-implementations))))))
+(setq slime-default-lisp 'sbcl)
+
;;;----- Shell mode ---------------------------------------------------------
;; --- Make the shell mode aware of my prompt ---