;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; GNU Emacs EMACS_VERSION default settings for Vine Linux ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defcustom emacs-ime (getenv "EMACS_IME") "A variable of default Input Method Editor" :type 'string) (if (null emacs-ime) (setq emacs-ime "scim")) (defcustom vine-default t "A boolean for all Vine Linux default settings" :type 'boolean) (if (equal (getenv "LOGNAME") "root") (setq vine-default nil)) (defcustom vine-default-base t "A boolean for vine-default-base" :type 'boolean) (defcustom vine-default-faces t "A boolean for vine-default-faces" :type 'boolean) (defvar vine-default-setup-hook nil "List of functions to be called at vine-default-setup") (defvar after-vine-default-setup-hook nil "This hook is obsolete! Please do not use this hook. List of functions to be called at the end of vine-default-setup") (defun vine-default-setup () "A function for setup to default configurations of Vine Linux" (when vine-default (message "Starting vine-default-setup ...") (when vine-default-base (message "Loading vine-default-base ...") (require 'vine-default-base)) (when vine-default-faces (message "Loading vine-default-faces ...") (require 'vine-default-faces)) (run-hooks 'vine-default-setup-hook) (run-hooks 'after-vine-default-setup-hook);; obsolete ) ) (defun show-vine-default () "A function to show current vine-default configurations" (interactive) (shell-command "/usr/lib/emacsen-common/show-vine-default.sh EMACS_VERSION")) (defun drop-vine-default-from-load-path (regex) "A function to drop a path matching to REGEX from load-path" (setq load-path (loop for x in load-path unless (string-match regex x) collect x)) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; run functions from the /etc/emacs-EMACS_VERSION/site-start.d directory ;;; Files in this directory ending with ".el" are run on startup (mapc 'load (directory-files "/etc/emacs-EMACS_VERSION/site-start.d" t "\\.el\\'")) ;;; load local configuration (if (file-exists-p (expand-file-name "/etc/emacs/emacs24-local.el")) (load (expand-file-name "/etc/emacs/emacs24-local.el"))) ;;; load vine-default configuration per user before vine-default-setup (if (file-exists-p (expand-file-name "~/.emacs.d/emacs24-vine-default.el")) (load (expand-file-name "~/.emacs.d/emacs24-vine-default.el"))) ;;; run vine-default-setup (vine-default-setup) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Local Variables: ;; mode: emacs-lisp ;; End: