File: emacsen-startup.in

package info (click to toggle)
w3m-el-snapshot 1.4.632%2B0.20181112-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,052 kB
  • sloc: lisp: 46,659; sh: 515; makefile: 379
file content (30 lines) | stat: -rw-r--r-- 1,185 bytes parent folder | download | duplicates (10)
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
27
28
29
30
;;; 50@PACKAGE@.el --- Debian @PACKAGE@ startup file  -*-mode: emacs-lisp;-*-

(let* ((pkg "@PACKAGE@")
       (pkg-sname "w3m")
       (flavor-name (if (boundp 'debian-emacs-flavor)
			(symbol-name debian-emacs-flavor)
		      "emacs"))
       (pkg-inst (concat "/usr/lib/emacsen-common/packages/install/" pkg))
       (elc-dir (concat "/usr/share/" flavor-name "/site-lisp/" pkg-sname)))
  (when (and (file-exists-p elc-dir)
	     (file-exists-p pkg-inst))
    (when (and (not (featurep 'mule))
	       (file-exists-p (concat elc-dir "/nomule")))
      (setq elc-dir (concat elc-dir "/nomule")))
    (if (fboundp 'debian-pkg-add-load-path-item)
        (progn
          (debian-pkg-add-load-path-item (concat elc-dir "/shimbun"))
          (debian-pkg-add-load-path-item elc-dir))
      (setq load-path (cons (concat elc-dir "/shimbun") load-path))
      (setq load-path (cons elc-dir load-path)))
    ;;
    (if (featurep 'xemacs)
	(setq w3m-icon-directory "/usr/share/pixmaps/w3m-el")
      (setq w3m-icon-directory "/usr/share/pixmaps/w3m-el/small"))
    (if (file-exists-p (concat elc-dir "/w3m-load.el"))
        (require 'w3m-load))
    ;;
    ))

;;; 50@PACKAGE@.el ends here