source: projects/specs/trunk/e/emacs/site-start.el.emacs23 @ 2599

Revision 2599, 2.4 KB checked in by munepi, 13 years ago (diff)

updated emacs, emacs24, yatex, howm

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  (when vine-default
35    (message "Starting vine-default-setup ...")
36    (when vine-default-base
37      (message "Loading vine-default-base ...")
38      (require 'vine-default-base))
39    (when vine-default-faces
40      (message "Loading vine-default-faces ...")
41      (require 'vine-default-faces))
42    (run-hooks 'vine-default-setup-hook)
43    (run-hooks 'after-vine-default-setup-hook);; obsolete
44    )
45  )
46
47(defun show-vine-default ()
48  "A function to show current vine-default configurations"
49  (interactive)
50  (shell-command
51   "/usr/lib/emacsen-common/show-vine-default.sh EMACS_VERSION"))
52
53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
55;;; run functions from the /etc/emacs-EMACS_VERSION/site-start.d directory
56;;; Files in this directory ending with ".el" are run on startup
57(mapc 'load (directory-files "/etc/emacs-EMACS_VERSION/site-start.d" t "\\.el\\'"))
58
59;;; load local configuration
60(if (file-exists-p (expand-file-name "/etc/emacs/emacs23-local.el"))
61    (load (expand-file-name "/etc/emacs/emacs23-local.el")))
62
63;;; load vine-default configuration per user before vine-default-setup
64(if (file-exists-p (expand-file-name "~/.emacs.d/emacs23-vine-default.el"))
65    (load (expand-file-name "~/.emacs.d/emacs23-vine-default.el")))
66
67;;; run vine-default-setup
68(vine-default-setup)
69
70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
71
72;; Local Variables:
73;; mode: emacs-lisp
74;; End:
Note: See TracBrowser for help on using the repository browser.