;; Postscript printing.
-(setq ps-paper-type 'a4
- ps-print-only-one-header t
- ps-print-color-p t
- ps-landscape-mode t ps-number-of-columns 4
- ps-line-number t ps-line-number-step 5 ps-line-number-start 5
- ps-zebra-stripes nil ps-zebra-stripe-height 5
- ps-spool-duplex t ps-spool-tumble nil ps-spool-config 'setpagedevice
- ps-top-margin (* 12 (/ 72 25.4))
- ps-bottom-margin (* 16 (/ 72 25.4))
- ps-header-offset (* 8 (/ 72 25.4))
- ps-left-margin (* 12 (/ 72 25.4))
- ps-right-margin (* 12 (/ 72 25.4))
- ps-inter-column (* 4 (/ 72 25.4))
- ps-font-family 'CourierCondensed ps-font-size '(4.5 . 5.16)
- ps-line-number-font 'Palatino ps-line-number-font-size 3
- ps-header-font-family 'Helvetica
- ps-header-title-font-size '(8 . 10)
- ps-header-font-size '(6 . 8))
+(let ((mm (/ 72 25.4)))
+ (setq ps-paper-type 'a4
+ ps-print-only-one-header t
+ ps-print-color-p t
+ ps-landscape-mode t ps-number-of-columns 4
+ ps-line-number t ps-line-number-step 5 ps-line-number-start 5
+ ps-zebra-stripes nil ps-zebra-stripe-height 5
+ ps-spool-duplex t ps-spool-tumble nil ps-spool-config 'setpagedevice
+ ps-top-margin (* 12 mm)
+ ps-bottom-margin (* 16 mm)
+ ps-header-offset (* 8 mm)
+ ps-left-margin (* 12 mm)
+ ps-right-margin (* 12 mm)
+ ps-inter-column (* 4 mm)
+ ps-font-family 'CourierCondensed ps-font-size '(4.5 . 5.16)
+ ps-line-number-font 'Palatino ps-line-number-font-size 3
+ ps-header-font-family 'Helvetica
+ ps-header-title-font-size '(8 . 10)
+ ps-header-font-size '(6 . 8)))
;; Splash screen stuff.
(setq read-quoted-char-radix 16) ;C-q HEX-STUFF [RET]
(setq case-fold-file-names nil) ;Don't translate file names (grr...)
(setq scroll-step 5) ;Don't scroll too much at a time
+(setq custom-unlispify-tag-names nil ;Display variable names properly
+ custom-unlispify-menu-entries nil
+ custom-buffer-done-kill t)
(setq blink-cursor-blinks 0) ;Keep blinking the cursor
(setq-default fill-column mdw-text-width) ;I use rather narrow windows
(setq adaptive-fill-mode nil) ;I have my own machinery instead
(setq find-ls-option ;Build file lists efficiently
'("-print0 | xargs -0r ls -ld" . "ld"))
(setq bookmark-save-flag 0) ;Save bookmarks automatically
+(setq ediff-grab-mouse nil)
(setq vc-follow-symlinks t
vc-git-resolve-conflicts nil)
(setq x-gtk-file-dialog-help-text nil)
(sit-for 2))
;;(add-hook 'viper-vi-state-hook 'mdw-set-viper-cursor-colour)
-(defvar mdw-black-background t)
+(defcustom mdw-black-background t
+ "Whether the Emacs background is black (or dark, at any rate)."
+ :type 'boolean)
(eval-after-load "outline"
'(progn
;; Other frame fiddling.
-(defvar mdw-hostname
+(defcustom mdw-hostname
(if (string-match "\\." system-name)
(substring system-name 0 (match-beginning 0))
- system-name))
+ system-name)
+ "Unqualified hostname Emacs is running on."
+ :type 'string
+ :safe 'stringp)
(setq frame-title-format '("Emacs " user-login-name "@" mdw-hostname " – %b")
icon-title-format frame-title-format)
(global-set-key [?\C-c ?m ?b] 'magit-blame)
(global-set-key [?\C-c ?m ?d] 'magit-dispatch-popup)
(global-set-key [?\C-c ?m ?f] 'magit-find-file)
+ (global-set-key [?\C-c ?m ?l] 'magit-toggle-buffer-lock)
(global-set-key [?\C-c ?m ?m] 'magit-status)
(global-set-key [?\C-c ?m ?r] 'magit-list-repositories)
(global-set-key [?\C-c ?m ?w] 'magit-wip-log)
(global-set-key [?\C-c ?v ?i] 'vm-visit-imap-folder)
(global-set-key [?\C-c ?v ?m] 'vm-visit-folder)
(global-set-key [?\C-c ?v ?v] 'mdw-auto-revert)
+ (global-set-key [?\C-c ?w ? ] 'mdw-designate-window)
(global-set-key [?\C-c ?w ?b] 'w3m-bookmark-view)
(global-set-key [?\C-c ?w ?c] 'mdw-set-frame-colour)
(global-set-key [?\C-c ?w ?d] 'mdw-divvy-window)
(global-set-key [?\C-c ?w ?k] 'windmove-up)
(global-set-key [?\C-c ?w ?l] 'windmove-right)
(global-set-key [?\C-c ?w ?r] 'winner-redo)
+ (global-set-key [?\C-c ?w ?s] 'mdw-switch-window-configuration)
(global-set-key [?\C-c ?w ?u] 'winner-undo)
(global-set-key [?\C-c ?w ?w] 'mdw-set-frame-width)
(global-set-key [?\C-c ?w up] 'windmove-up)