source: projects/specs/trunk/e/emacs24/site-start.el.emacs24 @ 2750

Revision 2750, 2.7 KB checked in by munepi, 13 years ago (diff)

updated emacs, emacs24, wl, yatex, auctex, IIIMECF; added wl-beta; supported new vine-default

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(defun drop-vine-default-from-load-path (regex)
54  "A function to drop a path matching to REGEX from load-path"
55  (setq load-path
56        (loop for x in load-path
57              unless (string-match regex x)
58              collect x))
59  )
60
61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
62
63;;; run functions from the /etc/emacs-EMACS_VERSION/site-start.d directory
64;;; Files in this directory ending with ".el" are run on startup
65(mapc 'load (directory-files "/etc/emacs-EMACS_VERSION/site-start.d" t "\\.el\\'"))
66
67;;; load local configuration
68(if (file-exists-p (expand-file-name "/etc/emacs/emacs24-local.el"))
69    (load (expand-file-name "/etc/emacs/emacs24-local.el")))
70
71;;; load vine-default configuration per user before vine-default-setup
72(if (file-exists-p (expand-file-name "~/.emacs.d/emacs24-vine-default.el"))
73    (load (expand-file-name "~/.emacs.d/emacs24-vine-default.el")))
74
75;;; run vine-default-setup
76(vine-default-setup)
77
78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
79
80;; Local Variables:
81;; mode: emacs-lisp
82;; End:
Note: See TracBrowser for help on using the repository browser.