source: projects/specs/branches/6/e/emacs22/site-start.el.emacs22 @ 2293

Revision 2293, 2.3 KB checked in by munepi, 13 years ago (diff)

update: emacs22-22.3, emacs-23.2; NEW: emacs24-24.0.50: applied new vine-default system

Line 
1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2;;; GNU Emacs EMACS_VERSION default settings for Vine Linux
3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4
5(defcustom emacs-ime (getenv "EMACS_IME")
6  "A variable of default Input Method Editor"
7  :type 'string)
8(if (null emacs-ime)
9    (setq emacs-ime "scim"))
10
11(defcustom vine-default t
12  "A boolean for all Vine Linux default settings"
13  :type 'boolean)
14(if (equal (getenv "LOGNAME") "root")
15    (setq vine-default nil))
16
17(defcustom vine-default-base t
18  "A boolean for vine-default-base"
19  :type 'boolean)
20
21(defcustom vine-default-faces t
22  "A boolean for vine-default-faces"
23  :type 'boolean)
24
25(defvar vine-default-setup-hook nil
26  "List of functions to be called at vine-default-setup")
27
28(defvar after-vine-default-setup-hook nil
29  "This hook is obsolete! Please do not use this hook.
30   List of functions to be called at the end of vine-default-setup")
31
32(defun vine-default-setup ()
33  "A function for setup to default configurations of Vine Linux"
34  (if vine-default
35      (progn
36        (message "Starting vine-default-setup ...")
37        (if vine-default-base (require 'vine-default-base))
38        (if vine-default-faces (require 'vine-default-faces))
39        (run-hooks 'vine-default-setup-hook)
40        (run-hooks 'after-vine-default-setup-hook);; obsolete
41        )
42    )
43  )
44
45(defun show-vine-default ()
46  "A function to show current vine-default configurations"
47  (interactive)
48  (shell-command
49   "/usr/lib/emacsen-common/show-vine-default.sh EMACS_VERSION"))
50
51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
52
53;;; run functions from the /etc/emacs-EMACS_VERSION/site-start.d directory
54;;; Files in this directory ending with ".el" are run on startup
55(mapc 'load (directory-files "/etc/emacs-EMACS_VERSION/site-start.d" t "\\.el\\'"))
56
57;;; load local configuration
58(if (file-exists-p (expand-file-name "/etc/emacs/emacs23-local.el"))
59    (load (expand-file-name "/etc/emacs/emacs22-local.el")))
60
61;;; load vine-default configuration per user before vine-default-setup
62(if (file-exists-p (expand-file-name "~/.emacs.d/emacs22-vine-default.el"))
63    (load (expand-file-name "~/.emacs.d/emacs22-vine-default.el")))
64
65;;; run vine-default-setup
66(vine-default-setup)
67
68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
69
70;; Local Variables:
71;; mode: emacs-lisp
72;; End:
Note: See TracBrowser for help on using the repository browser.