Eshell settings tweak
[syinit] / 01-vars-sy.el
1 ;; 00-vars-sy.el --- Various variables   -*- Emacs-Lisp -*-
2
3 ;; Copyright (C) 2007 - 2012 Steve Youngs
4
5 ;;     Author: Steve Youngs <steve@sxemacs.org>
6 ;; Maintainer: Steve Youngs <steve@sxemacs.org>
7 ;;    Created: <2007-12-02>
8 ;; Time-stamp: <Sunday Jun 10, 2012 10:53:05 steve>
9 ;;   Download: <http://bastard.steveyoungs.com/~steve/SXEmacs/inits/>
10 ;;   HTMLised: <http://bastard.steveyoungs.com/~steve/SXEmacs/htmlinits/00-vars-sy.html>
11 ;;   Git Repo: git clone http://git.sxemacs.org/syinit
12 ;;   Keywords: init, compile
13
14 ;; This file is part of SYinit
15
16 ;; Redistribution and use in source and binary forms, with or without
17 ;; modification, are permitted provided that the following conditions
18 ;; are met:
19 ;;
20 ;; 1. Redistributions of source code must retain the above copyright
21 ;;    notice, this list of conditions and the following disclaimer.
22 ;;
23 ;; 2. Redistributions in binary form must reproduce the above copyright
24 ;;    notice, this list of conditions and the following disclaimer in the
25 ;;    documentation and/or other materials provided with the distribution.
26 ;;
27 ;; 3. Neither the name of the author nor the names of any contributors
28 ;;    may be used to endorse or promote products derived from this
29 ;;    software without specific prior written permission.
30 ;;
31 ;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
32 ;; IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 ;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34 ;; DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
35 ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
36 ;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
37 ;; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
38 ;; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39 ;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
40 ;; OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
41 ;; IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
43 ;;; Commentary:
44 ;;
45 ;;   This init file sets up a few miscelaneous variables and whatnot.
46 ;;   If anything has to be loaded very early in the boot up I'll put
47 ;;   it in here because this file is loaded first.
48 ;;
49
50 ;;; Credits:
51 ;;
52 ;;   The HTML version of this file was created with Hrvoje Niksic's
53 ;;   htmlize.el which is part of the XEmacs "text-modes" package.
54 ;;
55
56 ;;; Todo:
57 ;;
58 ;;     
59
60 ;;; Code:
61 ;:*=======================
62 ;:* Set default font (I do this in vars-sy.el because it is called first)
63 (defvar sydeffaces
64   '(default bold bold-italic italic)
65   "List symbols for default fonts.")
66
67 (mapc
68  #'(lambda (font)
69      (remove-specifier (face-font font) 'global '(x default) nil))
70  sydeffaces)
71
72 (progn
73   (set-face-font 'default
74                  (make-font-instance
75                   "-xos4-terminus-medium-r-*-*-*-150-*-*-*-*-iso8859-*")
76                  'global '(x default))
77   (set-face-font 'bold
78                  (make-font-instance
79                   "-xos4-terminus-bold-r-*-*-*-150-*-*-*-*-iso8859-*")
80                  'global '(x default))
81   (set-face-font 'bold-italic
82                  (make-font-instance
83                   "-*-times-bold-i-*-*-*-140-*-*-*-*-iso8859-*")
84                  'global '(x default))
85   (set-face-font 'italic
86                  (make-font-instance
87                   "-*-times-medium-i-*-*-*-140-*-*-*-*-*-*")
88                  'global '(x default)))
89
90 ;:*=======================
91 ;:* Lossage Messages
92 ;; A lot of the time I'm running some very unstable code.  So I set
93 ;; this quite high so I can catch all the help-lossage messages.
94 (setq view-lossage-message-count 1000)
95
96 ;:*=======================
97 ;:* SXEmacs has a sane filename for custom-file
98 (unless (featurep 'sxemacs)
99   (setq custom-file
100         (expand-file-name "custom-steve.el" user-init-directory))
101   (load-file custom-file))
102
103 ;:*=======================
104 ;:* Set the default font
105 (set-face-property 'default 'face "-*-Terminus-medium-r-*-*-*-140-*-*-*-*-iso8859-*")
106
107 ;:*=======================
108 ;:* Stuff. Lots of stuff...
109
110 (setq-default
111  buffers-menu-grouping-function 'group-buffers-menu-by-mode-then-alphabetically
112  buffers-menu-sort-function 'sort-buffers-menu-by-mode-then-alphabetically
113  buffers-menu-submenus-for-groups-p t
114  case-fold-search t
115  case-replace t
116  get-frame-for-buffer-default-instance-limit nil
117  mouse-yank-at-point t
118  next-line-add-newlines nil
119  overwrite-mode nil
120  require-final-newline t
121  teach-extended-commands-p t
122  teach-extended-commands-timeout 5
123  temp-buffer-show-function 'show-temp-buffer-in-current-frame
124  zmacs-regions t)
125
126 (defvar gnus-directory (paths-construct-path 
127                         (list (user-home-directory) "Gnus"))
128   "Gnus directory.")
129    
130 (defvar message-directory (paths-construct-path 
131                         (list (user-home-directory) "Gnus"))
132   "Gnus directory.")
133    
134 ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*
135 (message "variables initialiased")