File: emacsen-startup

package info (click to toggle)
scala-mode-el 20111005-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 164 kB
  • ctags: 150
  • sloc: lisp: 1,088; makefile: 67; sh: 25
file content (21 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;; -*-emacs-lisp-*-

(if (not (file-exists-p "/usr/share/emacs/site-lisp/scala-mode"))
    (message "Package scala-mode-el removed but not purged.  Skipping setup.")

  (let ((instdir (concat "/usr/share/"
                        (symbol-name debian-emacs-flavor)
                        "/site-lisp/scala-mode")))

    ;; Only load scala-mode if it has been installed.
    (if (zerop (length (file-expand-wildcards instdir)))
        (message "scala-mode not for this flavor.  Skipping.")

      ;; The sml-mode 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 instdir)

      ;; Autoload sml-mode top-level functions site-wide.
      (load "scala-mode-auto"))))