File: emacsen-startup

package info (click to toggle)
lua-mode 20140514-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 400 kB
  • ctags: 387
  • sloc: lisp: 4,046; makefile: 37; sh: 26
file content (17 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; -*-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)))

  (autoload 'lua-mode "lua-mode" "Major mode for editing Lua code." t))