[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: w3m-init-file



>>>>> In [emacs-w3m : No.03886]
>>>>>	TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp> wrote:

土屋さん> 反応がなくて悲しいですが,

ごめんなさい。

土> (1) ~/.w3m/emacs
土> (2) ~/.w3m/init.el
土> (3) ~/.w3m/config.el

土屋さん> とりあえず,案(2)を実装しておきました.難波さんの案
土屋さん> ~/.emacs-w3m も捨て難いのですが,うーん….

難波さんがおっしゃる "~/.w3m" が変、と言うのもおおいに納得。
いっそ nil つうのはどうでしょう。

  w3m-init-file が nil だったら "~/.w3m.el"、"~/.w3m/init.el"、
  "~/.w3m/config.el" の順に探して、最初に見つかったものを load
  し、そのファイル名を w3m-init-file に設定する。

  大抵のユーザは w3m-init-file を設定する必要が無いと思うが、

  emacs-w3m が load される前に w3m-init-file にファイル名が設定
  されていたら、それを読む。

  上記すべての場合にサフィックス .elc のものがあったら .el より
  優先、.el とサフィックスが無いものがあったら .el を優先する。

(defvar w3m-init-file nil
  "*Your emacs-w3m startup file name.  This is a special variable.
If nil, emacs-w3m searches for `~/.w3m.el', `~/.w3m/init.el' and
`~/.w3m/config.el' in order, reads the file found first and sets this
variable with the file name (which is not registered in file, though).
Otherwise, if you've set this variable to a file name before emacs-w3m
is loaded, it will be read when emacs-w3m starts.  emacs-w3m will also
check for files with the same names as these, but with `.elc' and `.el'
suffixes.  In other words, if you have set this to `~/.emacs-w3m', it
will look for `~/.emacs-w3m.elc', `~/.emacs-w3m.el', and finally
`~/.emacs-w3m' (in this order).")

defcustom を使うまでもないのです。この値を変更するのは、自分のやっ
ていることがよくわかっている人だろうから。
-- 
Katsumi Yamaoka <yamaoka@jpl.org>