Debian Codegraph @

debian/emacsen-startup

raw
1 ;;; 50ddskk.el --- Debian ddskk startup file -*-mode: emacs-lisp;-*-
2
3 ;;; Code:
4
5 (let* ((flavor-name (if (boundp 'debian-emacs-flavor)
6 (symbol-name debian-emacs-flavor)
7 "emacs"))
8 (lispdir (concat "/usr/share/" flavor-name "/site-lisp/ddskk")))
9 (when (and (featurep 'mule) (file-exists-p (concat lispdir "/skk.elc")))
10 (if (fboundp 'debian-pkg-add-load-path-item)
11 (debian-pkg-add-load-path-item lispdir)
12 (setq load-path (cons lispdir load-path)))
13 ;; Load ddskk's skk-autoloads instead of the others.
14 (load (concat lispdir "/skk-autoloads.elc") 'noerror 'nomessage)
15 (require 'skk-setup)
16 (add-hook 'minibuffer-setup-hook
17 (function (lambda ()
18 (and (boundp 'skk-henkan-okuri-strictly)
19 skk-henkan-okuri-strictly
20 (not (eq last-command 'skk-purge-jisyo))
21 (put 'skk-henkan-okuri-strictly 'temporary-nil t)
22 (setq skk-henkan-okuri-strictly nil)))))
23 (add-hook 'minibuffer-exit-hook
24 (function (lambda ()
25 (and (get 'skk-henkan-okuri-strictly 'temporary-nil)
26 (setq skk-henkan-okuri-strictly t)
27 (put 'skk-henkan-okuri-strictly 'temporary-nil nil)))))
28 (defalias 'skk-toggle-kana 'skk-toggle-characters)
29 (setq skk-server-host (or (getenv "SKKSERVER") "127.0.0.1"))
30 (if (file-exists-p "/usr/share/skk/SKK-JISYO.cdb")
31 (setq skk-cdb-large-jisyo "/usr/share/skk/SKK-JISYO.cdb"))
32 ;;(setq skk-large-jisyo "/usr/share/skk/SKK-JISYO")
33 (setq skk-tut-file "/usr/share/skk/SKK.tut")
34 ;;
35 ))
36
37 ;;; 50ddskk.el ends here