File: recutils.emacsen-startup

package info (click to toggle)
recutils 1.7-1.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 12,276 kB
  • ctags: 7,034
  • sloc: ansic: 64,860; sh: 18,180; lisp: 1,840; yacc: 1,381; makefile: 331; lex: 241; sed: 16
file content (18 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; 50recutils.el -- debian emacs setups for recutils

(cond ((not (file-exists-p "/usr/share/emacs/site-lisp/rec-mode.el"))
       (message "recutils removed but not purged, skipping setup"))

      ;; rec-mode.el needs GNU Emacs 24 up in a few places.
      ;; Check features it needs, not a hard coded version number.
      ;; emacs23 doesn't have `looking-back'.
      ;; xemacs21 doesn't have `looking-back' or `tabulated-list-mode'.
      ((not (and (fboundp 'looking-back)
                 (fboundp 'tabulated-list-mode)))
       (message "recutils is not for this Emacs, skipping setup"))

      (t
       (autoload 'rec-mode "rec-mode" "A major mode for editing rec files." t)

       ;; as recommended by /usr/share/info/rec-mode.info "Activation"
       (add-to-list 'auto-mode-alist '("\\.rec\\'" . rec-mode))))