File: pyrex-mode.emacsen-startup

package info (click to toggle)
pyrex 0.9.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,556 kB
  • ctags: 2,601
  • sloc: python: 12,966; ansic: 3,092; makefile: 106; sh: 20; lisp: 12
file content (23 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; -*-emacs-lisp-*-
;;
;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50pyrex-mode.el
;; for the Debian pyrex-mode package
;;
;; The pyrex-mode package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...). The compiled code is then installed
;; in a subdirectory of the respective site-lisp directory.

;; If package-dir does not exist, the pyrex-mode package must have
;; been removed but not purged, and we should skip the setup.
(if (not (file-exists-p "/usr/share/emacs/site-lisp/pyrex-mode.el"))
  (message "Package pyrex-mode removed but not purged. Skipping setup")

;; Otherwise, autoload the pyrex-mode for the following extensions 
  (autoload 'pyrex-mode "pyrex-mode" "Pyrex editing mode." t)
  (add-to-list 'auto-mode-alist '("\\.pyx$" . pyrex-mode))
  (add-to-list 'auto-mode-alist '("\\.pxd$" . pyrex-mode))
  (add-to-list 'auto-mode-alist '("\\.pxi$" . pyrex-mode))

;; endif
)