;;; site-gentoo.el --- site initialisation for Gentoo-installed packages ;;; Commentary: ;; Automatically generated by elisp-common.eclass ;; DO NOT EDIT THIS FILE ;;; Code: ;;; a2ps site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/a2ps") (autoload 'a2ps-mode "a2ps" nil t) (autoload 'a2ps-buffer "a2ps-print" nil t) (autoload 'a2ps-region "a2ps-print" nil t) (add-to-list 'auto-mode-alist '("\\.a2ps\\'" . a2ps-mode)) ;;; auctex site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex") (require 'tex-site) ;; detect needed steps after rebuild (setq TeX-parse-self t) (add-to-list 'load-path "/usr/share/emacs/site-lisp/cmake") (autoload 'cmake-mode "cmake-mode" "Major mode for editing CMake files." t) (add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode)) (add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode)) ;; desktop-file-utils site initialisation (add-to-list 'load-path "/usr/share/emacs/site-lisp/desktop-file-utils") (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t) (add-to-list 'auto-mode-alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode)) (add-hook 'desktop-entry-mode-hook 'turn-on-font-lock) ;; maxima mode (add-to-list 'load-path "/usr/share/emacs/site-lisp/maxima") (autoload 'maxima-mode "maxima" "Maxima mode" t) (autoload 'maxima "maxima" "Maxima interactive" t) (setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist)) (autoload 'dbl "dbl" "Make a debugger to run lisp, maxima and or gdb in" t) (autoload 'gcl-mode "gcl" "Major mode for editing maxima code and interacting with debugger" t) (setq auto-mode-alist (cons '("\\.ma?[cx]\\'" . maxima-mode) auto-mode-alist)) ;; emaxima mode (autoload 'emaxima-mode "emaxima" "EMaxima" t) (add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima) ;;; ocaml-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/ocaml-mode") (add-to-list 'auto-mode-alist '("\\.ml[iylp]?\\'" . caml-mode)) (autoload 'caml-mode "caml" "Major mode for editing Caml code." t) (autoload 'run-caml "inf-caml" "Run an inferior Caml process." t) (autoload 'camldebug "camldebug" "Run camldebug on program FILE in buffer *camldebug-FILE*." t) (autoload 'inferior-caml-mode-font-hook "caml-font") (eval-after-load "caml" '(require 'caml-font)) (add-hook 'inferior-caml-mode-hooks 'inferior-caml-mode-font-hook) ;;; highline site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/highline") (load "highline-autoloads" nil t) ;; (global-set-key "\C-c\C-a" 'highline-on) ;; (global-set-key "\C-c\C-b" 'highline-off) ;; (global-set-key "\C-c\C-l" 'highline-local-mode) ;; (global-set-key "\C-c\C-d" 'highline-mode-on) ;; (global-set-key "\C-c\C-e" 'highline-mode-off) ;; (global-set-key "\C-c\C-g" 'highline-mode) ;; (global-set-key "\C-c\C-c" 'highline-customize) ;; (global-set-key "\C-c\C-v\C-n" 'highline-view-on) ;; (global-set-key "\C-c\C-v\C-f" 'highline-view-off) ;; (global-set-key "\C-c\C-v\C-t" 'highline-view-mode) ;;; php-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/php-mode") (autoload 'php-mode "php-mode" "Major mode for editing PHP code." t) (add-to-list 'auto-mode-alist '("\\.php[s34]?\\'" . php-mode)) (add-to-list 'auto-mode-alist '("\\.phtml\\'" . php-mode)) (add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode)) ;;; rst site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/rst") (autoload 'rst-mode "rst" "mode for editing reStructuredText documents" t) (add-to-list 'auto-mode-alist '("\\.re?st\\'" . rst-mode)) ;;; tramp site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/tramp") (setq auto-save-file-name-transforms `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" ,(expand-file-name "\\2" temporary-file-directory)))) (load "tramp-autoloads" nil t) ;;; nxml-gentoo-schemas site-lisp configuration ;; This must come after the nxml-mode site initialisation, ;; because rng-schema-locating-files-default is set there. (add-to-list 'rng-schema-locating-files-default "/usr/share/emacs/etc/nxml-gentoo-schemas/schemas.xml") ;;; python-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/python-mode") (autoload 'python-mode "python-mode" "Python editing mode." t) (autoload 'jython-mode "python-mode" "Python editing mode." t) (autoload 'py-shell "python-mode" "Start an interactive Python interpreter in another window." t) (autoload 'doctest-mode "doctest-mode" "Editing mode for Python Doctest examples." t) (add-to-list 'auto-mode-alist '("\\.py$" . python-mode)) (add-to-list 'auto-mode-alist '("\\.doctest$" . doctest-mode)) (add-to-list 'interpreter-mode-alist '("python" . python-mode)) (add-to-list 'interpreter-mode-alist '("jython" . jython-mode)) ;;; svn site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/subversion") (and (< emacs-major-version 22) (add-to-list 'load-path "/usr/share/emacs/site-lisp/subversion/compat")) (add-to-list 'vc-handled-backends 'SVN) (defalias 'svn-examine 'svn-status) (autoload 'svn-status "psvn" "Examine the status of Subversion working copy in directory DIR." t) ;;; apache-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/apache-mode") (autoload 'apache-mode "apache-mode" "autoloaded" t) (add-to-list 'auto-mode-alist '("\\.htaccess$" . apache-mode)) (add-to-list 'auto-mode-alist '("httpd\\.conf$" . apache-mode)) (add-to-list 'auto-mode-alist '("srm\\.conf$" . apache-mode)) (add-to-list 'auto-mode-alist '("access\\.conf$" . apache-mode)) (add-to-list 'auto-mode-alist '("apache[12]\?\\.conf$" . apache-mode)) (add-to-list 'auto-mode-alist '("commonapache[12]\?\\.conf$" . apache-mode)) ;;; autoconf site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/autoconf-mode") (autoload 'autoconf-mode "autoconf-mode" "Major mode for editing autoconf files." t) (autoload 'autotest-mode "autotest-mode" "Major mode for editing autotest files." t) (add-to-list 'auto-mode-alist '("\\.ac\\'\\|configure\\.in\\'" . autoconf-mode)) (add-to-list 'auto-mode-alist '("\\.at\\'" . autotest-mode)) ;;; crontab-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/crontab-mode") (autoload 'crontab-mode "crontab-mode" nil t) (autoload 'crontab-get "crontab-mode" nil t) ;;; css-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/css-mode") (add-to-list 'auto-mode-alist '("\\.css$" . css-mode)) (autoload 'css-mode "css-mode" "Mode for editing Cascading Style Sheets") ;;; elib site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/elib") ;;;BEGIN gcl addition (autoload 'dbl "dbl" "Make a debugger to run lisp, maxima and or gdb in" t) ;;;END gcl addition ;;; Gnuplot site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/gnuplot") ;;-------------------------------------------------------------------- ;; Lines enabling gnuplot-mode (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t) (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t) ;; this line automatically causes all files with the .gp extension to ;; be loaded into gnuplot mode (setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) auto-mode-alist)) ;; This line binds the function-9 key so that it opens a buffer into ;; gnuplot mode (global-set-key [(f9)] 'gnuplot-make-buffer) ;; end of line for gnuplot-mode ;;-------------------------------------------------------------------- (require 'kdvi-search) (add-hook 'LaTeX-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) (add-hook 'tex-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) ;;; mailcrypt site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/mailcrypt") ;;; mmm-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/mmm-mode") (require 'mmm-auto) ;;; monotone site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/monotone") (autoload 'monotone-toggle-vc-prefix-map "monotone" "Toggle between the default and monotone vc-maps, ARG set map." t) (autoload 'monotone "monotone" "Prompt for a STRING and run monotone with the split string." t) (autoload 'monotone-pull "monotone" "Pull updates from a remote server. ARG prompts." t) (autoload 'monotone-push "monotone" "Push the DB contents to a remote server. ARG prompts." t) (autoload 'monotone-vc-commit "monotone" "Do a commit." t) (autoload 'monotone-vc-print-log "monotone" "Print the log for this buffer. With prefix ARG the global log." t) (autoload 'monotone-vc-diff "monotone" "Print the diffs for this buffer. With prefix ARG, the global diffs." t) (autoload 'monotone-vc-register "monotone" "Register this file with monotone for the next commit." t) (autoload 'monotone-vc-status "monotone" "Print the status of the current branch." t) (autoload 'monotone-grab-id "monotone" "Grab the id under point and put it in the kill buffer for later use." t) (autoload 'mnav-revdb-reload "monotone-nav") (autoload 'mnav-pick "monotone-nav" "Display browser to pick a monotone revision." t) ;;; nxml site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/nxml-mode") (load "rng-auto" nil t) (setq rng-schema-locating-files-default '("schemas.xml" "/usr/share/emacs/etc/nxml-mode/schema/schemas.xml") rng-schema-locating-file-schema-file "/usr/share/emacs/etc/nxml-mode/schema/locate.rnc") (add-to-list 'auto-mode-alist '("\\.\\(xml\\|xsl\\|xsd\\|rng\\|xhtml\\)\\'" . nxml-mode)) ;;; psgml site-lisp configuration (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) (autoload 'xml-mode "psgml" "Major mode to edit XML files." t) (setq sgml-catalog-files '("CATALOG" "/etc/sgml/catalog")) ;;; psql site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/psql") (autoload 'psql-mode "psql-mode" "Mode for editing postgress sql." t) (autoload 'psql-run "psql-mode" "Mode for editing postgress sql." t) (add-to-list 'auto-mode-alist '("\\.p?sql$" . psql-mode )) ;;; emacs site-lisp configuration for pymacs (add-to-list 'load-path "/usr/share/emacs/site-lisp/pymacs") (autoload 'pymacs-load "pymacs" nil t) (autoload 'pymacs-eval "pymacs" nil t) (autoload 'pymacs-apply "pymacs") (autoload 'pymacs-call "pymacs") ;;; ruby-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/ruby-mode") (autoload 'ruby-mode "ruby-mode" "Major mode to edit ruby files." t) (add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode)) (add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process" t) (autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode") (add-hook 'ruby-mode-hook 'inf-ruby-keys) ;;; setnu site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/setnu") (autoload 'setnu-mode "setnu" "Toggle setnu-mode." t) (autoload 'turn-on-setnu-mode "setnu" "Turn on setnu-mode." nil) ;;; table site-lisp configuration ;; Emacs 22 and later include the table package (unless (fboundp 'table-insert) (add-to-list 'load-path "/usr/share/emacs/site-lisp/table") (load "table-autoloads" nil t) (add-hook 'text-mode-hook 'table-recognize)) ;;; tdtd site-lisp configuration (autoload 'dtd-mode "tdtd" "Major mode to edit DTD files." t) (autoload 'dtd-etags "tdtd" "Execute etags on FILESPEC and match on DTD-specific regular expressions." t) (autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching FILESPEC." t) ;; Turn on font lock when in DTD mode (add-hook 'dtd-mode-hooks 'turn-on-font-lock) (setq auto-mode-alist (append (list '("\\.dcl$" . dtd-mode) '("\\.dec$" . dtd-mode) '("\\.dtd$" . dtd-mode) '("\\.ele$" . dtd-mode) '("\\.ent$" . dtd-mode) '("\\.mod$" . dtd-mode)) auto-mode-alist)) ;; To use resize-minibuffer-mode, uncomment this and include in your .emacs: ;;(resize-minibuffer-mode) ;;; xslide site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/xslide") (autoload 'xsl-mode "xslide" "Major mode for XSL stylesheets." t) ;; Turn on font lock when in XSL mode (add-hook 'xsl-mode-hook 'turn-on-font-lock) (setq auto-mode-alist (append (list '("\\.fo$" . xsl-mode) '("\\.xsl" . xsl-mode)) auto-mode-alist)) ;;; haskell-mode site-lisp configuration (load "/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file" nil t) ;; po-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/po-mode") (autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t) (or (fboundp 'po-find-file-coding-system) (autoload 'po-find-file-coding-system "po-compat")) (add-to-list 'auto-mode-alist '("\\.po\\'\\|\\.po\\." . po-mode)) (modify-coding-system-alist 'file "\\.po\\'\\|\\.po\\." 'po-find-file-coding-system) ;;; sml-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/sml-mode") (load "sml-mode-startup" nil t) ;;; site-lisp configuration for stripes (add-to-list 'load-path "@SITELISP") (autoload 'stripes-mode "stripes" "Toggle Color alternation mode." t) (autoload 'turn-on-stripes-mode "stripes" "Turn on color alternation mode." t) ;;; cedet site-lisp configuration (load "/usr/share/emacs/site-lisp/cedet/common/cedet" nil t) ;; If you wish to customize CEDET, you will need to follow the ;; directions in the INSTALL (installed in the documentation) file and ;; customize your ~/.emacs /before/ site-gentoo is loaded. ;;; gtk-doc site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/gtk-doc") (autoload 'gtk-doc-insert "gtk-doc" "Add a documentation header to the current function." t) (autoload 'gtk-doc-insert-section "gtk-doc" "Add a section documentation header at the current position." t) (add-to-list 'load-path "/usr/share/emacs/site-lisp/gnus") (require 'gnus-load) ;;; JDE site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/jde/lisp") (require 'jde-autoload) ;;; xrdb-mode site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/xrdb-mode") (autoload 'xrdb-mode "xrdb-mode" "Mode for editing X resource files" t) (setq auto-mode-alist (append '(("\\.Xdefaults$" . xrdb-mode) ("\\.Xenvironment$" . xrdb-mode) ("\\.Xresources$" . xrdb-mode) ("*.\\.ad$" . xrdb-mode)) auto-mode-alist)) ;;; git site-lisp configuration (add-to-list 'load-path "/usr/share/emacs/site-lisp/git") (add-to-list 'vc-handled-backends 'GIT) (autoload 'git-status "git" "Entry point into git-status mode." t) (autoload 'git-blame-mode "git-blame" "Minor mode for incremental blame for Git." t) ;;; site-lisp configuration for md5 (add-to-list 'load-path "/usr/share/emacs/site-lisp/md5") ;;; site-gentoo.el ends here