message-directory (concat gnus-home-directory "/Mail")))
-(cw/for-host "luxevop"
- ;; Firefox-like zooming of fonts.
- (setq tfheen-base-font "Bitstream Vera Sans Mono"
- tfheen-base-size 12
- tfheen-current-size tfheen-base-size)
-
- (defun font-zoom-increase-font-size ()
- (interactive)
- (setq tfheen-current-size (+ tfheen-current-size 2))
- (let ((font-name (format "%s-%d" tfheen-base-font tfheen-current-size)))
- (set-frame-font font-name)))
-
- (defun font-zoom-decrease-font-size ()
- (interactive)
- (setq tfheen-current-size (- tfheen-current-size 2))
- (let ((font-name (format "%s-%d" tfheen-base-font tfheen-current-size)))
- (set-frame-font font-name)))
-
- (defun font-zoom-reset-font-size ()
- (interactive)
- (let ((font-name (format "%s-%d" tfheen-base-font tfheen-base-size)))
- (set-frame-font font-name)))
-
- (define-key global-map (read-kbd-macro "C--") 'font-zoom-decrease-font-size)
- (define-key global-map (read-kbd-macro "C-+") 'font-zoom-increase-font-size)
- (define-key global-map (read-kbd-macro "C-=") 'font-zoom-reset-font-size)
- (font-zoom-reset-font-size))
+(cw/for-emacs-23-and-later
+ (setq tfheen-base-size 8)
+ (cw/for-host "luxevop"
+ (setq tfheen-base-size 12))
+
+ (setq tfheen-base-font "Bitstream Vera Sans Mono"
+ tfheen-current-size tfheen-base-size)
+ ;; Firefox-like zooming of fonts.
+
+ (defun font-zoom-increase-font-size ()
+ (interactive)
+ (setq tfheen-current-size (+ tfheen-current-size 2))
+ (let ((font-name (format "%s-%d" tfheen-base-font tfheen-current-size)))
+ (set-frame-font font-name)))
+
+ (defun font-zoom-decrease-font-size ()
+ (interactive)
+ (setq tfheen-current-size (- tfheen-current-size 2))
+ (let ((font-name (format "%s-%d" tfheen-base-font tfheen-current-size)))
+ (set-frame-font font-name)))
+
+ (defun font-zoom-reset-font-size ()
+ (interactive)
+ (let ((font-name (format "%s-%d" tfheen-base-font tfheen-base-size)))
+ (set-frame-font font-name)))
+
+ (define-key global-map (read-kbd-macro "C--") 'font-zoom-decrease-font-size)
+ (define-key global-map (read-kbd-macro "C-+") 'font-zoom-increase-font-size)
+ (define-key global-map (read-kbd-macro "C-=") 'font-zoom-reset-font-size)
+ (font-zoom-reset-font-size))
(not (string-match "Lucid" emacs-version)))
,@body))
+(defmacro cw/for-emacs-23 (&rest body)
+ `(when (and (= emacs-major-version 23)
+ (not (string-match "Lucid" emacs-version)))
+ ,@body))
+
+(defmacro cw/for-emacs-23-and-later (&rest body)
+ `(when (and (>= emacs-major-version 23)
+ (not (string-match "Lucid" emacs-version)))
+ ,@body))
+
(defmacro cw/for-emacs (&rest body)
`(when (not (string-match "Lucid" emacs-version))
,@body))