File: emacsen-startup

package info (click to toggle)
lua-mode 20060625-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 88 kB
  • ctags: 96
  • sloc: lisp: 810; sh: 38; makefile: 33
file content (21 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
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/lua-mode"))
    (message "Package lua-mode removed but not purged.  Skipping setup.")

  ;; The lua-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
   (concat 
    "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/lua-mode"))

  ;; Automatically start lua files in lua-mode.
  (add-to-list (quote auto-mode-alist) (quote ("\\.lua\\'" . lua-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/lua-mode")))
  
  (load "lua-mode"))