/etc/emacs/site-start.d/50haxe.el is in haxe 1:3.0.0~svn6707-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ;; -*-emacs-lisp-*-
(if (not (file-exists-p "/usr/share/emacs/site-lisp/haxe-mode"))
(message "Package haxe needs reinstall. Skipping setup.")
(let ((haxedir (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/haxe-mode")))
;; Only load haxe-mode if it has been installed.
(if (zerop (length (file-expand-wildcards haxedir)))
(message "haxe-mode not for this flavor. Skipping.")
;; The haxe package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor'. The compiled code
;; is then installed in a subdirectory of the respective site-lisp directory.
(debian-pkg-add-load-path-item haxedir)
;; Automatically start haXe files in haxe-mode.
(add-to-list (quote auto-mode-alist) (quote ("\\.hx\\'" . haxe-mode)))
;; Make sure that Help can find the source code. Has to be at the end.
(setq load-path
(nconc load-path (list "/usr/share/emacs/site-lisp/haxe-mode")))
(autoload 'haxe-mode "haxe-mode" "Major mode for editing haXe code." t))))
|