[mew-dist 29199] Re: 共通のmew.elファイル の設定をホスト毎にカスタマイズする方 法

Takashi Masuda (増田貴士) <[email protected]>
Newsgroups gmane.mail.mew.general.japanese
Message-ID <[email protected]>

On Fri, 09 Apr 2010 08:40:32 +0900 (JST)
Hideyuki SHIRAI () <[email protected]> wrote:

> default-case mew-config-alist 
> 




(1)  ~/.emacs 

;; mew-lisp-load() 
(defun my-lisp-load (filename)
  "Load lisp from FILENAME"
  (let ((fullname (expand-file-name filename "~/.spec"))
        lisp)
    (when (file-readable-p fullname)
      (with-temp-buffer
        (progn
          (insert-file-contents fullname)
          (setq lisp 
                (condition-case nil
                    (read (current-buffer))
                  (error ()))))))
    lisp))

(2) ~/.mew.el 

   (setq mew-hogehoge (my-lisp-load "mew-hogehoge"))

(3)  A  B  ~/.spec/mew-hogehoge 
    mew-hogehoge 

   (("hoge"
     (aaa . AAA)
     (bbb . BBB))
    ("hugahuga"
     (xxx . XXX)
     (yyy . YYY)))

--
Takashi Masuda <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.